:root{color-scheme:light;font-family:Outfit,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:radial-gradient(circle at top right,#f1f5f9,#e2e8f0);color:#0f172a}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea{font:inherit}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#00000005;border-radius:4px}::-webkit-scrollbar-thumb{background:#94a3b84d;border-radius:4px;transition:all .2s ease}::-webkit-scrollbar-thumb:hover{background:#94a3b880}.app-shell{min-height:100vh;display:grid;place-items:center;padding:32px 24px}.chat-panel{width:min(100%,1100px);height:min(880px,calc(100vh - 64px));display:grid;grid-template-rows:auto auto 1fr auto auto;background:#ffffffd9;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.5);border-radius:16px;box-shadow:0 4px 6px -1px #0000000d,0 20px 40px -8px #0f172a1f,inset 0 1px #fff9;overflow:hidden;transition:all .3s ease}.chat-header{min-height:90px;display:flex;align-items:center;justify-content:space-between;padding:20px 32px;border-bottom:1px solid rgba(15,23,42,.08);background:linear-gradient(135deg,#0f172a,#1e293b);color:#f8fafc;position:relative}.chat-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#3b82f6,#10b981)}.chat-header h1{margin:0;font-size:24px;font-weight:800;letter-spacing:-.5px;background:linear-gradient(90deg,#fff,#cbd5e1);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.chat-header p{margin:4px 0 0;color:#94a3b8;font-size:13.5px;font-weight:500}.tab-navigation{display:flex;gap:8px;background:#ffffff0f;padding:4px;border-radius:10px;border:1px solid rgba(255,255,255,.05)}.tab-btn{display:flex;align-items:center;gap:8px;background:transparent;border:0;color:#94a3b8;padding:8px 16px;font-size:13.5px;font-weight:600;border-radius:8px;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1)}.tab-btn:hover{color:#fff;background:#ffffff0d}.tab-btn.active{background:#3b82f6;color:#fff;box-shadow:0 4px 12px #3b82f64d}.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 32px;border-bottom:1px solid rgba(15,23,42,.06);background:#f8fafc99}.settings-row label{display:grid;gap:6px;color:#475569;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.settings-row input,.composer textarea,.auth-inputs input,.filter-input-group input{width:100%;border:1px solid #cbd5e1;border-radius:8px;color:#0f172a;background:#fff;outline:none;font-size:14px;transition:all .2s ease-in-out;box-shadow:inset 0 1px 2px #00000005}.settings-row input{height:42px;padding:0 14px}.settings-row input:focus,.composer textarea:focus,.auth-inputs input:focus,.filter-input-group input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61f,inset 0 1px 2px #00000005}.messages{min-height:0;overflow:auto;padding:32px;display:flex;flex-direction:column;gap:24px;background:#f8fafc;position:relative}.message{display:flex;gap:14px;align-items:flex-start;max-width:85%;animation:messageSlideIn .3s cubic-bezier(.16,1,.3,1)}.message.user{align-self:flex-end;flex-direction:row-reverse}.avatar{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#fff;background:linear-gradient(135deg,#3b82f6,#1d4ed8);box-shadow:0 4px 10px #3b82f640}.message.user .avatar{background:linear-gradient(135deg,#10b981,#047857);box-shadow:0 4px 10px #10b98140}.bubble{border:1px solid #e2e8f0;border-radius:14px;padding:16px 20px;background:#fff;box-shadow:0 2px 5px #0f172a08;position:relative}.message.user .bubble{color:#fff;background:#10b981;border-color:#10b981;box-shadow:0 4px 12px #10b98126}.bubble p{margin:0;line-height:1.55;white-space:pre-wrap;font-size:14.5px}.bubble dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0 0;padding-top:14px;border-top:1px solid #f1f5f9}.message.user .bubble dl{border-top-color:#ffffff26}.bubble dl div{min-width:0}.bubble dt{color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}.message.user .bubble dt{color:#ffffffb3}.bubble dd{margin:4px 0 0;overflow-wrap:anywhere;font-size:14px;font-weight:700;color:#0f172a}.message.user .bubble dd{color:#fff}.error-box{margin:0 32px 16px;border:1px solid #fee2e2;border-radius:10px;padding:12px 16px;color:#b91c1c;background:#fef2f2;font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:8px;box-shadow:0 2px 4px #b91c1c0d}.composer{display:grid;grid-template-columns:1fr auto;gap:16px;padding:20px 32px 24px;border-top:1px solid rgba(15,23,42,.06);background:#ffffffe6}.composer textarea{resize:none;min-height:80px;max-height:160px;padding:14px 16px;line-height:1.5;border:1px solid #cbd5e1}.composer-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}.composer-actions button[type=submit]{width:52px;height:52px;display:grid;place-items:center;align-self:end;border:0;border-radius:10px;color:#fff;background:linear-gradient(135deg,#3b82f6,#1d4ed8);box-shadow:0 4px 12px #3b82f64d;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1)}.composer-actions button[type=submit]:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px #3b82f666}.composer-actions button:disabled{cursor:not-allowed;opacity:.5;box-shadow:none}.btn-ai-simulate,.btn-analyze{display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer;transition:all .18s ease;white-space:nowrap;border:1px solid}.btn-ai-simulate{background:#f0f9ff;border-color:#bae6fd;color:#0369a1}.btn-ai-simulate:hover:not(:disabled){background:#e0f2fe;border-color:#7dd3fc}.btn-analyze{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}.btn-analyze:hover:not(:disabled){background:#ede9fe;border-color:#c4b5fd}.rag-yes{color:#15803d}.rag-no{color:#94a3b8;font-size:12px}.modal-analyze{max-width:660px}.analyze-score-row{display:flex;align-items:center;gap:12px;margin-bottom:20px}.analyze-score-label{font-size:13px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.5px}.analyze-score-badge{font-size:22px;font-weight:900;padding:4px 14px;border-radius:8px}.score-high{background:#dcfce7;color:#15803d}.score-mid{background:#fef9c3;color:#854d0e}.score-low{background:#fee2e2;color:#b91c1c}.analyze-section{margin-bottom:20px}.analyze-section h4{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#475569;margin:0 0 8px}.analyze-section p{font-size:14px;color:#1e293b;line-height:1.6;margin:0}.analyze-section ul{margin:0;padding-left:18px}.analyze-section li{font-size:14px;color:#1e293b;line-height:1.6;margin-bottom:4px}.analyze-prompt-box{background:#0f172a;color:#e2e8f0;border-radius:8px;padding:14px 16px;font-size:12.5px;line-height:1.6;white-space:pre-wrap;overflow-x:auto;margin:0 0 10px}.btn-copy-prompt{padding:7px 14px;border-radius:7px;border:1px solid #cbd5e1;background:#f8fafc;font-size:12px;font-weight:700;color:#334155;cursor:pointer;transition:background .15s}.btn-copy-prompt:hover{background:#e2e8f0}.leads-container{display:flex;flex-direction:column;height:100%;min-height:0;padding:24px 32px;background:#f8fafc;overflow:hidden}.leads-auth-row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding-bottom:20px;border-bottom:1px solid #e2e8f0}.auth-inputs{display:flex;gap:16px;flex:1}.auth-inputs label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.5px;flex:1;max-width:220px}.auth-inputs input{height:38px;padding:0 12px}.leads-filters-row{padding:16px 0;border-bottom:1px solid #e2e8f0}.filter-input-group{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.filter-input-group input{height:40px;padding:0 12px;flex:1;min-width:140px}.btn-refresh,.btn-search,.btn-detail,.btn-modal-close{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13.5px;font-weight:700;border-radius:8px;border:0;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1)}.btn-refresh{height:38px;padding:0 18px;background:#10b981;color:#fff;box-shadow:0 4px 10px #10b98133}.btn-refresh:hover:not(:disabled){background:#059669;transform:translateY(-1px);box-shadow:0 6px 14px #10b9814d}.btn-search{height:40px;padding:0 20px;background:#3b82f6;color:#fff;box-shadow:0 4px 10px #3b82f633}.btn-search:hover:not(:disabled){background:#2563eb;transform:translateY(-1px);box-shadow:0 6px 14px #3b82f64d}.leads-list-scroll{flex:1;overflow-y:auto;padding:20px 0;min-height:0}.leads-loader-state,.leads-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 24px;text-align:center;color:#64748b;background:#ffffff80;border:1px dashed #cbd5e1;border-radius:12px}.leads-empty-state h3{margin:16px 0 8px;color:#0f172a;font-size:20px;font-weight:800}.leads-empty-state p{margin:0;font-size:14.5px;max-width:400px;line-height:1.5}.leads-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:20px}.lead-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 4px 6px -1px #00000005,0 2px 4px -1px #00000003;transition:all .25s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.lead-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:#cbd5e1;transition:all .25s ease}.lead-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px -10px #0f172a26;border-color:#cbd5e1}.lead-card:hover:before{background:#3b82f6}.lead-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.lead-card-header h4{margin:0;font-size:17px;font-weight:800;color:#0f172a;letter-spacing:-.2px}.lead-profession-badge{font-size:11px;font-weight:800;padding:4px 10px;border-radius:20px;white-space:nowrap;text-transform:uppercase;letter-spacing:.5px}.lead-profession-badge.pension{background:#eef2ff;color:#4f46e5}.lead-profession-badge.employee{background:#ecfdf5;color:#059669}.lead-card-body{font-size:13.5px;color:#475569;line-height:1.65;margin-bottom:18px}.lead-card-body p{margin:6px 0;display:flex;justify-content:space-between}.lead-card-body strong{color:#0f172a;font-weight:600}.lead-date{font-size:11.5px;color:#94a3b8;margin-top:14px!important;border-top:1px solid #f1f5f9;padding-top:10px}.lead-card-footer{border-top:1px solid #f1f5f9;padding-top:14px}.btn-detail{width:100%;height:38px;background:#f1f5f9;color:#334155}.btn-detail:hover{background:#e2e8f0;color:#0f172a}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0f172a66;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:grid;place-items:center;z-index:1000;animation:fadeIn .2s cubic-bezier(.16,1,.3,1)}.modal-content{background:#fff;width:min(94vw,860px);max-height:85vh;border-radius:16px;box-shadow:0 10px 15px -3px #0000000d,0 25px 50px -12px #00000040;display:flex;flex-direction:column;overflow:hidden;animation:scaleIn .3s cubic-bezier(.34,1.56,.64,1)}.modal-header{padding:20px 28px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#f8fafc;display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #3b82f6}.modal-header h3{margin:0;font-size:18px;font-weight:800;letter-spacing:-.2px}.close-btn{background:transparent;border:0;color:#94a3b8;cursor:pointer;padding:6px;border-radius:6px;display:grid;place-items:center;transition:all .2s ease}.close-btn:hover{color:#fff;background:#ffffff14}.modal-body-scroll{padding:28px;overflow-y:auto;background:#f8fafc;display:flex;flex-direction:column;gap:24px}.modal-lead-title-row{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #e2e8f0;padding-bottom:14px}.modal-lead-title-row h2{margin:0;font-size:26px;font-weight:900;color:#0f172a;letter-spacing:-.5px}.lead-date-top{font-size:13.5px;font-weight:500;color:#64748b;background:#f1f5f9;padding:6px 12px;border-radius:20px;border:1px solid #e2e8f0}.lead-date-top-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lead-consultant-badge{font-size:13.5px;font-weight:600;color:#1f7664;background:#e9f4f1;padding:6px 12px;border-radius:20px;border:1px solid #b2d8d0}.lead-consultant{font-size:.88rem;color:#1f7664;font-weight:600}.modal-sections-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.modal-detail-section{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;box-shadow:0 1px 3px #00000005}.modal-detail-section.full-width{grid-column:span 2}.section-title{margin:0 0 16px;font-size:13px;font-weight:900;color:#3b82f6;text-transform:uppercase;letter-spacing:1px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #f1f5f9;padding-bottom:10px}.section-grid{display:grid;grid-template-columns:1fr;gap:14px}.section-grid-3cols{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.detail-item{display:flex;flex-direction:column;gap:4px}.item-label{font-size:10.5px;font-weight:800;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px}.item-val{font-size:14.5px;color:#334155;word-break:break-word;font-weight:550}.item-val.highlight{font-size:16px;font-weight:800;color:#10b981}.item-val.danger-alert{font-weight:800;color:#ef4444}.item-val.code-font{font-family:monospace;font-size:12px;color:#64748b;background:#f1f5f9;padding:2px 6px;border-radius:4px;width:fit-content}.modal-footer-action{padding:16px 28px;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;background:#fff}.btn-modal-close{background:#0f172a;color:#fff;padding:10px 24px;font-size:14.5px}.btn-modal-close:hover{background:#1e293b}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}@keyframes messageSlideIn{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}@media (max-width: 768px){.app-shell{padding:0}.chat-panel{height:100vh;border:0;border-radius:0;width:100%}.chat-header{padding:16px 20px;flex-direction:column;align-items:flex-start;gap:12px}.settings-row{grid-template-columns:1fr;padding:16px 20px;gap:12px}.messages{padding:20px}.message{max-width:92%}.composer{padding:16px 20px}.bubble dl{grid-template-columns:repeat(2,minmax(0,1fr))}.leads-container{padding:16px 20px}.leads-auth-row{flex-direction:column;align-items:stretch;gap:14px;padding-bottom:14px}.auth-inputs{flex-direction:column;gap:10px}.auth-inputs label{max-width:none}.modal-sections-grid{grid-template-columns:1fr;gap:16px}.modal-detail-section.full-width{grid-column:span 1}.section-grid-3cols{grid-template-columns:1fr;gap:12px}.modal-body-scroll{padding:20px}}.settings-panel{padding:28px 32px;display:flex;flex-direction:column;gap:24px;overflow-y:auto}.settings-title-row{display:flex;align-items:center;gap:12px}.settings-title{font-size:17px;font-weight:800;color:#0f172a;margin:0}.settings-autosave{font-size:11px;font-weight:600;color:#22c55e;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:20px;padding:2px 10px;opacity:0;transition:opacity .3s ease}.settings-autosave.visible{opacity:1}.settings-desc{font-size:13px;color:#64748b;margin:-16px 0 0}.settings-group{display:flex;flex-direction:column}.settings-label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:700;color:#334155}.settings-hint{font-size:11.5px;font-weight:400;color:#94a3b8}.settings-input{margin-top:4px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;color:#0f172a;background:#fff;max-width:480px}.settings-preview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px;max-width:480px}.settings-preview-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#64748b;margin:0 0 10px}.input-error{border-color:#ef4444!important;background:#fef2f2}.settings-error{font-size:12px;color:#ef4444;font-weight:600;margin-top:2px}.settings-preview-code{font-size:12px;color:#1e293b;white-space:pre-wrap;margin:0;line-height:1.6}.consultant-table{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-width:780px}.consultant-table-header{display:grid;grid-template-columns:1fr 1.4fr 1.8fr 32px;gap:8px;font-size:11px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.4px;padding:0 4px 4px;border-bottom:1px solid #e2e8f0}.consultant-table-row{display:grid;grid-template-columns:1fr 1.4fr 1.8fr 32px;gap:8px;align-items:start}.consultant-table-row .settings-input{max-width:100%;width:100%;margin-top:0;padding:8px 10px;font-size:13px}.consultant-email-cell{display:flex;flex-direction:column;gap:2px}.btn-remove-consultant{height:34px;width:32px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;color:#94a3b8;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s;margin-top:0;flex-shrink:0}.btn-remove-consultant:hover:not(:disabled){background:#fee2e2;color:#ef4444;border-color:#fca5a5}.btn-remove-consultant:disabled{opacity:.35;cursor:not-allowed}.btn-add-consultant{align-self:flex-start;margin-top:4px;padding:7px 14px;border:1px dashed #94a3b8;border-radius:7px;background:transparent;color:#475569;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}.btn-add-consultant:hover{background:#f1f5f9;border-color:#64748b}.data-trace{margin-top:10px;border-top:1px dashed #e2e8f0;padding-top:8px}.data-trace-toggle{background:none;border:none;font-size:11px;font-weight:700;color:#64748b;cursor:pointer;padding:2px 0;letter-spacing:.3px;text-transform:uppercase}.data-trace-toggle:hover{color:#334155}.data-trace-grid{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px}.data-trace-item{display:flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}.trace-icon{font-size:11px}.trace-label{font-weight:600;color:#475569}.data-trace-item.filled .trace-label{color:#334155}.data-trace-item.missing .trace-label{color:#94a3b8}.trace-val{color:#0f172a;font-weight:500;max-width:120px;overflow:hidden;text-overflow:ellipsis}.trace-val.missing-val{color:#ef4444;font-style:italic}.autotest-panel{padding:24px;display:flex;flex-direction:column;gap:20px;overflow-y:auto;flex:1}.autotest-header h2{margin:0 0 4px;font-size:20px}.autotest-header p{margin:0;color:#64748b;font-size:14px}.autotest-controls{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.autotest-count-label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#374151}.autotest-count-input{width:90px;padding:8px 12px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:15px;font-weight:600;text-align:center}.btn-autotest-run{display:flex;align-items:center;gap:8px;padding:10px 22px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s}.btn-autotest-run:disabled{opacity:.6;cursor:not-allowed}.autotest-progress-wrap{display:flex;flex-direction:column;gap:6px}.autotest-progress-bar{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden}.autotest-progress-fill{height:100%;background:linear-gradient(90deg,#6366f1,#8b5cf6);transition:width .4s ease}.autotest-progress-label{font-size:13px;color:#64748b}.autotest-results{display:flex;flex-direction:column;gap:16px}.autotest-summary-row{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px 20px}.autotest-avg-label{font-size:13px;color:#64748b;display:block;margin-bottom:4px}.autotest-avg-score{display:flex;flex-direction:column}.autotest-stats{font-size:14px;color:#475569}.autotest-common-section{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px}.autotest-common-section h3{margin:0 0 10px;font-size:14px;color:#374151}.autotest-common-section ul{margin:0;padding-left:18px}.autotest-common-section li{font-size:13px;color:#475569;margin-bottom:4px}.autotest-detail-title{font-size:15px;margin:4px 0 8px;color:#374151}.autotest-test-card{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.autotest-test-header{display:flex;align-items:center;gap:12px;width:100%;background:#f8fafc;border:none;padding:12px 16px;cursor:pointer;text-align:left}.autotest-test-header:hover{background:#f1f5f9}.autotest-test-id{font-weight:700;font-size:14px;flex:1}.autotest-test-meta{font-size:12px;color:#64748b}.autotest-test-body{padding:16px;border-top:1px solid #e2e8f0;display:flex;flex-direction:column;gap:12px}.autotest-summary{font-size:13px;color:#475569;margin:0}.autotest-detail-section strong{font-size:13px;color:#374151;display:block;margin-bottom:6px}.autotest-detail-section ul{margin:0;padding-left:18px}.autotest-detail-section li{font-size:12px;color:#64748b;margin-bottom:3px}.autotest-steps-path{font-size:11px;color:#6366f1;background:#eef2ff;border-radius:6px;padding:6px 10px;font-family:monospace;line-height:1.8;word-break:break-all}.autotest-step-num{color:#a5b4fc;font-weight:700;margin-right:1px}.autotest-steps-arrow{color:#c7d2fe}.autotest-live-log{margin-top:10px;background:#0f172a;border-radius:8px;padding:12px 14px;max-height:280px;overflow-y:auto;font-family:JetBrains Mono,Fira Code,monospace;font-size:12px;line-height:1.6}.autotest-log-line{color:#94a3b8;white-space:pre-wrap;word-break:break-word}.autotest-log-line:last-child{color:#e2e8f0}@keyframes pulse-text{0%,to{opacity:1}50%{opacity:.4}}.autotest-log-pulse{animation:pulse-text 1.2s ease-in-out infinite;color:#60a5fa!important}.wf-login-panel{width:min(100%,360px);padding:28px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 12px 30px #0f172a14}.auth-panel{width:min(100%,460px);height:auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:36px 24px;overflow:visible}.wf-login-panel h2{margin:0;font-size:1.1rem;line-height:1.25}.wf-login-panel p{margin:8px 0 0;color:#64748b;font-size:.88rem;line-height:1.45}.wf-login-form{display:flex;flex-direction:column;gap:12px;margin-top:18px}.wf-login-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;color:#374151}.wf-login-form input{border:1px solid #d1d5db;border-radius:6px;padding:8px 10px;font-size:.9rem}.wf-login-form button{background:#2563eb;color:#fff;border:none;border-radius:6px;padding:10px;font-weight:600;cursor:pointer}@media (max-width: 768px){.auth-panel{width:100%;min-height:100vh;border:0;border-radius:0;padding:20px}.wf-login-panel{width:100%;max-width:360px;padding:24px}}.wf-panel{display:flex;flex-direction:column;gap:0;height:100%;overflow:hidden}.wf-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#f9fafb;flex-shrink:0}.wf-toolbar h2{margin:0;font-size:1rem;font-weight:700;flex:1}.wf-toolbar-right{display:flex;gap:8px}.btn-wf-back{background:none;border:1px solid #d1d5db;border-radius:6px;padding:6px 12px;cursor:pointer;font-size:.82rem;color:#374151}.btn-wf-back:hover{background:#f3f4f6}.btn-wf-create{display:flex;align-items:center;gap:6px;background:#2563eb;color:#fff;border:none;border-radius:6px;padding:6px 14px;cursor:pointer;font-size:.82rem;font-weight:600}.btn-wf-create:hover{background:#1d4ed8}.btn-wf-activate{display:flex;align-items:center;gap:4px;background:#16a34a;color:#fff;border:none;border-radius:6px;padding:5px 10px;cursor:pointer;font-size:.78rem;font-weight:600}.btn-wf-icon{background:none;border:1px solid #e5e7eb;border-radius:6px;padding:5px 8px;cursor:pointer;display:flex;align-items:center;color:#374151}.btn-wf-icon:hover{background:#f3f4f6}.btn-wf-icon.danger{color:#ef4444}.btn-wf-icon.danger:hover{background:#fef2f2}.btn-wf-toggle{display:flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;font-size:.85rem;font-weight:600;color:#374151;padding:4px 0}.wf-loading,.wf-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:3rem;color:#6b7280;flex:1}.wf-list{overflow-y:auto;flex:1;padding:12px 16px;display:flex;flex-direction:column;gap:8px}.wf-card{display:flex;align-items:center;border:1px solid #e5e7eb;border-radius:10px;padding:12px 14px;cursor:pointer;transition:box-shadow .15s}.wf-card:hover{box-shadow:0 2px 8px #00000014}.wf-card.active{border-color:#16a34a;background:#f0fdf4}.wf-card-main{flex:1}.wf-card-name{font-weight:700;font-size:.95rem;display:flex;align-items:center;gap:8px}.wf-card-meta{font-size:.78rem;color:#6b7280;margin-top:2px}.wf-card-meta code{background:#f3f4f6;padding:1px 4px;border-radius:4px}.wf-card-date{font-size:.72rem;color:#9ca3af;margin-top:4px}.wf-card-actions{display:flex;gap:6px}.wf-active-badge{background:#16a34a;color:#fff;font-size:.65rem;font-weight:700;padding:2px 6px;border-radius:4px}.wf-step-list{overflow-y:auto;flex:1;padding:12px 16px;display:flex;flex-direction:column;gap:6px}.wf-empty-steps{color:#9ca3af;text-align:center;padding:2rem}.wf-step-row{display:flex;align-items:flex-start;gap:12px;border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px;background:#fff}.wf-step-row.terminal{border-color:#6366f1;background:#f5f3ff}.wf-step-badge{min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#f3f4f6;border-radius:6px;font-size:.75rem;font-weight:700;color:#374151;flex-shrink:0}.wf-step-info{flex:1}.wf-step-code code{font-size:.8rem;background:#f3f4f6;padding:2px 6px;border-radius:4px;color:#1d4ed8}.wf-step-title{font-weight:600;font-size:.88rem;margin-top:4px}.wf-step-fields{font-size:.75rem;color:#6b7280;margin-top:4px}.wf-step-fields code{background:#dbeafe;color:#1d4ed8;padding:1px 4px;border-radius:3px;margin-right:3px}.wf-step-rules{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.wf-rule-chip{font-size:.7rem;background:#fef3c7;color:#92400e;padding:2px 6px;border-radius:4px;white-space:nowrap}.wf-step-default{font-size:.75rem;color:#6b7280;margin-top:4px}.wf-step-default code{background:#f3f4f6;padding:1px 4px;border-radius:3px}.wf-step-actions{display:flex;gap:4px;flex-shrink:0}.wf-form{overflow-y:auto;flex:1;padding:16px;display:flex;flex-direction:column;gap:14px}.wf-label{display:flex;flex-direction:column;gap:5px;font-size:.83rem;font-weight:600;color:#374151}.wf-label input,.wf-label textarea,.wf-label select{border:1px solid #d1d5db;border-radius:6px;padding:7px 10px;font-size:.88rem;font-family:inherit;resize:vertical}.wf-label input:focus,.wf-label textarea:focus,.wf-label select:focus{outline:none;border-color:#2563eb}.wf-hint{font-weight:400;color:#9ca3af;font-size:.75rem}.wf-error{color:#ef4444;font-size:.78rem}.wf-rules-textarea{font-family:monospace;font-size:.78rem}.wf-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wf-checkbox-label{flex-direction:row!important;align-items:center;gap:8px!important}.wf-form-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:8px;border-top:1px solid #e5e7eb}.btn-wf-cancel{background:none;border:1px solid #d1d5db;border-radius:6px;padding:8px 18px;cursor:pointer;font-size:.85rem}.btn-wf-save{display:flex;align-items:center;gap:6px;background:#2563eb;color:#fff;border:none;border-radius:6px;padding:8px 18px;cursor:pointer;font-size:.85rem;font-weight:600}.btn-wf-save:disabled{opacity:.5;cursor:not-allowed}.wf-simulator-layout{height:100%}.wf-sim-body{display:flex;flex:1;overflow:hidden;gap:0}.wf-sim-chat{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#f8fafc}.wf-sim-hint{color:#9ca3af;font-size:.85rem;text-align:center;padding:2rem}.wf-sim-hint code{background:#e0e7ff;color:#3730a3;padding:2px 6px;border-radius:4px}.wf-sim-bubble{max-width:70%;padding:10px 14px;border-radius:10px;font-size:.88rem;line-height:1.5}.wf-sim-bubble.user{background:#dbeafe;color:#1e3a8a;align-self:flex-end;border-bottom-right-radius:2px}.wf-sim-bubble.bot{background:#fff;color:#111827;border:1px solid #e5e7eb;align-self:flex-start;border-bottom-left-radius:2px}.wf-sim-debug{width:320px;flex-shrink:0;overflow-y:auto;border-left:1px solid #e5e7eb;padding:12px;background:#fafafa;font-size:.78rem}.wf-sim-debug h4{margin:0 0 10px;font-size:.83rem;color:#374151}.wf-debug-row{margin-bottom:6px;color:#374151}.wf-debug-row strong{color:#111827}.wf-debug-pre{background:#f3f4f6;border-radius:4px;padding:6px;font-size:.72rem;overflow-x:auto;white-space:pre-wrap;margin:4px 0}.wf-debug-details summary{cursor:pointer;color:#6b7280;margin-top:8px;font-weight:600}.wf-sim-input-bar{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e5e7eb;background:#fff;flex-shrink:0}.wf-sim-input-bar input{flex:1;border:1px solid #d1d5db;border-radius:8px;padding:8px 12px;font-size:.88rem}.wf-sim-input-bar button{background:#2563eb;color:#fff;border:none;border-radius:8px;padding:8px 18px;cursor:pointer;font-weight:600}.wf-sim-input-bar button:disabled{opacity:.5;cursor:not-allowed}.wf-system-prompt-panel{margin:0 0 20px;border:1px solid #e0e7ff;border-radius:10px;background:#f5f7ff;overflow:hidden}.wf-system-prompt-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e0e7ff;background:#eef2ff;font-size:.88rem}.wf-system-prompt-editor{padding:12px 16px 16px;display:flex;flex-direction:column;gap:10px}.wf-system-prompt-editor textarea{width:100%;border:1px solid #c7d2fe;border-radius:8px;padding:10px 12px;font-size:.82rem;font-family:JetBrains Mono,Fira Code,monospace;line-height:1.55;background:#fff;resize:vertical;outline:none;box-sizing:border-box}.wf-system-prompt-editor textarea:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11f}.wf-system-prompt-preview{margin:0;padding:12px 16px;font-size:.78rem;font-family:JetBrains Mono,Fira Code,monospace;line-height:1.6;color:#374151;white-space:pre-wrap;word-break:break-word;max-height:220px;overflow-y:auto}
