:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark;color:#ffffffde;background-color:#0a0f19;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(135deg,#0a0f19,#1a1f2e);overflow-x:hidden}#root{width:100%;min-height:100vh}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#0f172a80;border-radius:5px}::-webkit-scrollbar-thumb{background:#3b82f680;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#3b82f6b3}::selection{background:#3b82f64d;color:#f1f5f9}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.text-primary{color:#3b82f6}.text-success{color:#10b981}.text-danger{color:#ef4444}.text-warning{color:#eab308}.text-muted{color:#94a3b8b3}.header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 2.5rem;background:linear-gradient(135deg,#0a0f19f2,#0f172af2);border-bottom:1px solid rgba(59,130,246,.15);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 4px 20px #0000004d;position:sticky;top:0;z-index:100}.header-left{display:flex;align-items:center}.logo{display:flex;align-items:center;gap:1rem}.logo-icon{width:52px;height:52px;background:linear-gradient(135deg,#3b82f6,#8b5cf6,#ec4899);border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:26px;box-shadow:0 4px 15px #3b82f666;transition:transform .3s ease,box-shadow .3s ease}.logo-icon:hover{transform:scale(1.05);box-shadow:0 6px 20px #3b82f699}.logo-text h1{font-size:1.6rem;font-weight:800;letter-spacing:1.5px;margin:0;background:linear-gradient(135deg,#3b82f6,#8b5cf6,#ec4899);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 30px rgba(59,130,246,.3)}.subtitle{font-size:.75rem;color:#94a3b8b3;margin:.25rem 0 0;font-family:Courier New,monospace}.header-right{display:flex;gap:1.25rem;align-items:center}.user-info{display:flex;align-items:center;gap:1rem;padding:.75rem 1.25rem;background:#1e293b99;border-radius:10px;border:1px solid rgba(59,130,246,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:all .3s ease}.user-info:hover{background:#1e293bcc;border-color:#3b82f666;transform:translateY(-1px);box-shadow:0 4px 12px #0003}.user-name{color:#e2e8f0;font-size:.875rem;font-weight:500}.logout-btn{padding:.5rem 1.25rem;background:#ef444426;color:#fca5a5;border:1px solid rgba(239,68,68,.3);border-radius:8px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:.5px}.logout-btn:hover{background:#ef444440;border-color:#ef444499;color:#ef4444;transform:translateY(-1px);box-shadow:0 4px 12px #ef44444d}.status-btn{display:flex;align-items:center;gap:.75rem;padding:.875rem 1.75rem;border:none;border-radius:10px;font-weight:700;font-size:.875rem;cursor:default;transition:all .3s ease;letter-spacing:.5px;text-transform:uppercase;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 2px 8px #0003}.status-btn.halted{background:linear-gradient(135deg,#ef444426,#dc262626);color:#fca5a5;border:1px solid rgba(239,68,68,.4);box-shadow:0 2px 12px #ef444433}.status-btn.live{background:linear-gradient(135deg,#3b82f626,#2563eb26);color:#93c5fd;border:1px solid rgba(59,130,246,.4);box-shadow:0 2px 12px #3b82f633}.status-indicator{width:10px;height:10px;border-radius:50%;animation:pulse 2s infinite;box-shadow:0 0 8px currentColor}.status-btn.halted .status-indicator{background:#ef4444;box-shadow:0 0 12px #ef444499}.status-btn.live .status-indicator{background:#3b82f6;box-shadow:0 0 12px #3b82f699}.action-btn{padding:.875rem 2rem;border:none;border-radius:10px;font-weight:700;font-size:.875rem;cursor:pointer;transition:all .3s ease;letter-spacing:.5px;text-transform:uppercase;position:relative;overflow:hidden;box-shadow:0 4px 15px #0003}.action-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}.action-btn:hover:before{left:100%}.action-btn.resume{background:linear-gradient(135deg,#10b981,#059669,#047857);color:#fff;box-shadow:0 4px 20px #10b98166}.action-btn.resume:hover{transform:translateY(-2px);box-shadow:0 6px 25px #10b98199;background:linear-gradient(135deg,#059669,#047857,#065f46)}.action-btn.halt{background:linear-gradient(135deg,#ef4444,#dc2626,#b91c1c);color:#fff;box-shadow:0 4px 20px #ef444466}.action-btn.halt:hover{transform:translateY(-2px);box-shadow:0 6px 25px #ef444499;background:linear-gradient(135deg,#dc2626,#b91c1c,#991b1b)}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.1)}}@media(max-width:1400px){.header{padding:1.1rem 2rem}.logo-text h1{font-size:1.5rem;letter-spacing:1px}.logo-icon{width:48px;height:48px;font-size:24px}.status-btn,.action-btn{padding:.8rem 1.5rem;font-size:.85rem}.user-name{font-size:.8rem}}@media(max-width:1024px){.header{padding:1rem 1.5rem}.logo-text h1{font-size:1.3rem;letter-spacing:.5px}.subtitle{font-size:.7rem}.logo-icon{width:44px;height:44px;font-size:22px}.header-right{gap:1rem}.status-btn,.action-btn{padding:.75rem 1.25rem;font-size:.8rem}.user-info{padding:.65rem 1rem;gap:.75rem}.logout-btn{padding:.45rem 1rem;font-size:.75rem}}@media(max-width:768px){.header{flex-direction:column;gap:1rem;padding:1rem}.header-left,.logo{width:100%;justify-content:center}.logo-text h1{font-size:1.2rem}.subtitle{font-size:.65rem;text-align:center}.header-right{flex-wrap:wrap;justify-content:center;width:100%;gap:.75rem}.user-info{order:3;width:100%;justify-content:space-between;padding:.75rem 1rem}.status-btn,.action-btn{flex:1;min-width:140px;max-width:200px}.status-btn,.action-btn{font-size:.75rem;padding:.7rem 1rem}}@media(max-width:480px){.header{padding:.875rem .75rem;gap:.875rem}.logo{gap:.75rem}.logo-icon{width:40px;height:40px;font-size:20px;border-radius:10px}.logo-text h1{font-size:1.1rem;letter-spacing:.5px}.subtitle{font-size:.6rem;margin-top:.15rem}.header-right{flex-direction:column;gap:.75rem;width:100%}.user-info{order:1;width:100%;flex-direction:column;gap:.75rem;padding:.75rem;text-align:center}.user-name{font-size:.8rem;width:100%}.logout-btn{width:100%;padding:.6rem}.status-btn,.action-btn{width:100%;max-width:none;min-width:auto;padding:.75rem 1rem;font-size:.8rem}.status-indicator{width:8px;height:8px}}@media(max-width:360px){.header{padding:.75rem .5rem}.logo-text h1{font-size:1rem}.subtitle{font-size:.55rem}.status-btn,.action-btn{font-size:.7rem;padding:.65rem .875rem}}.portfolio-snapshot{background:#0f172a99;border-radius:12px;padding:1.5rem;border:1px solid rgba(51,65,85,.5)}.section-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1.5rem}.section-header .icon{font-size:1.25rem}.section-header h2{font-size:.875rem;font-weight:600;letter-spacing:1px;color:#94a3b8e6;margin:0}.stats-grid{display:flex;flex-direction:column;gap:1rem}.stat-card{background:#1e293b80;border-radius:12px;padding:1.5rem;border:1px solid rgba(51,65,85,.5);transition:all .3s ease}.stat-card:hover{border-color:#3b82f680;transform:translateY(-2px)}.stat-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.stat-label{font-size:.75rem;font-weight:600;color:#94a3b8b3;letter-spacing:.5px}.info-icon,.chart-icon,.lightning-icon{font-size:1rem;opacity:.5}.stat-value{font-size:1.875rem;font-weight:700;color:#f1f5f9;margin-bottom:.5rem}.stat-change{font-size:.875rem;font-weight:600;display:flex;align-items:center;gap:.25rem}.stat-change.positive{color:#10b981}.stat-change.negative{color:#ef4444}.positions-card{background:#1e293b80;border-radius:12px;padding:1.5rem;border:1px solid rgba(51,65,85,.5);grid-column:span 1}.positions-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;font-size:.75rem;font-weight:600;color:#94a3b8b3;letter-spacing:.5px}.positions-list{display:flex;flex-direction:column;gap:1rem}.position-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#0f172a80;border-radius:8px;border:1px solid rgba(51,65,85,.3)}.position-info{display:flex;flex-direction:column;gap:.25rem}.position-pair{font-size:.875rem;font-weight:600;color:#f1f5f9}.position-type{font-size:.75rem;font-weight:600;padding:.125rem .5rem;border-radius:4px;width:fit-content}.position-type.long{background:#10b9811a;color:#10b981}.position-type.short{background:#ef44441a;color:#ef4444}.position-stats{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.position-price{font-size:.875rem;font-weight:600;color:#f1f5f9}.position-change{font-size:.75rem;font-weight:600}@media(max-width:1024px){.portfolio-snapshot,.stat-card,.positions-card{padding:1.25rem}.stat-value{font-size:1.75rem}.stat-change{font-size:.8rem}}@media(max-width:768px){.portfolio-snapshot{padding:1rem}.section-header{margin-bottom:1.25rem}.section-header h2{font-size:.8rem}.stats-grid{gap:.875rem}.stat-card,.positions-card{padding:1rem}.stat-value{font-size:1.5rem}.stat-label{font-size:.7rem}.stat-change{font-size:.75rem}.positions-list{gap:.875rem}.position-item{padding:.65rem;flex-wrap:wrap;gap:.5rem}.position-info{flex:1;min-width:120px}.position-stats{align-items:flex-start}.position-pair,.position-price{font-size:.8rem}}@media(max-width:480px){.portfolio-snapshot{padding:.875rem}.section-header{margin-bottom:1rem}.section-header h2{font-size:.75rem}.stats-grid{gap:.75rem}.stat-card,.positions-card{padding:.875rem}.stat-value{font-size:1.375rem}.stat-label{font-size:.65rem}.stat-change,.positions-header{font-size:.7rem}.positions-list{gap:.75rem}.position-item{padding:.6rem;flex-direction:column;align-items:flex-start}.position-stats{width:100%;flex-direction:row;justify-content:space-between;align-items:center}.position-pair{font-size:.75rem}.position-type{font-size:.7rem}.position-price{font-size:.75rem}.position-change{font-size:.7rem}}.agent-orchestration{background:#0f172a99;border-radius:12px;padding:1.5rem;border:1px solid rgba(51,65,85,.5)}.section-header{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.icon{font-size:1.5rem}.market-selector{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:#94a3b8cc}.market-selector select{background:#1e293b99;border:1px solid rgba(51,65,85,.5);border-radius:4px;color:#f1f5f9;padding:.25rem .5rem;font-size:.75rem}.market-selector select:focus{outline:none;border-color:#3b82f680}.health-check{margin-left:auto;font-size:.75rem;color:#94a3b8b3;font-style:italic}.agents-list{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;margin-top:1.5rem}.agent-card{background:#1e293b99;border-radius:8px;padding:1rem;border:1px solid rgba(51,65,85,.5);cursor:pointer;transition:all .3s ease}.agent-card:hover{border-color:#3b82f680;transform:translate(4px)}.agent-card.active,.agent-card.meta-learning{border-color:#10b98180}.agent-card.incident{border-color:#ef44444d}.agent-card.selected{border-color:#3b82f6cc;background:#3b82f61a;box-shadow:0 0 10px #3b82f64d}.agent-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.agent-name{font-size:.875rem;font-weight:600;color:#f1f5f9}.status-indicator{font-size:.75rem}.status-indicator.active,.status-indicator.meta-learning{color:#10b981}.status-indicator.incident{color:#ef4444}.status-indicator.inactive{color:#94a3b880}.agent-description{font-size:.75rem;color:#94a3b8b3;margin-bottom:.5rem}.agent-meta{font-size:.7rem;color:#94a3b899;margin-top:.25rem}.orchestration-footer{margin-top:2rem;text-align:center;font-size:.875rem;color:#94a3b880;line-height:1.6}@media(max-width:1024px){.agents-list{grid-template-columns:1fr;gap:1.25rem}.agent-orchestration{padding:1.25rem}.section-header{flex-wrap:wrap;gap:.75rem}.market-selector{order:2;width:100%}.health-check{order:3;width:100%;margin-left:0;text-align:center}}@media(max-width:768px){.agent-orchestration{padding:1rem}.agents-list{gap:1rem}.agent-card{padding:.875rem}.section-header h2{font-size:1rem}.market-selector{font-size:.8rem}.market-selector select{font-size:.7rem;padding:.2rem .4rem}}@media(max-width:480px){.agent-orchestration{padding:.875rem}.section-header{margin-bottom:.875rem}.icon{font-size:1.25rem}.section-header h2{font-size:.9rem}.agent-card{padding:.75rem}.agent-name{font-size:.8rem}.agent-description{font-size:.7rem}.agent-meta{font-size:.65rem}}.live-feed{background:#0f172a99;border-radius:12px;padding:1.5rem;border:1px solid rgba(51,65,85,.5);display:flex;flex-direction:column;height:100%}.status-dots{margin-left:auto;display:flex;gap:.5rem}.dot{width:10px;height:10px;border-radius:50%}.dot.red{background:#ef4444}.dot.yellow{background:#eab308}.dot.green{background:#10b981;animation:pulse 2s infinite}.feed-container{flex:1;background:#0000004d;border-radius:8px;padding:1rem;margin:1rem 0;overflow-y:auto;max-height:600px;min-height:400px;font-family:Courier New,monospace}.logs-list{display:flex;flex-direction:column;gap:.5rem}.log-entry{display:flex;gap:.5rem;font-size:.75rem;line-height:1.6;padding:.5rem;border-radius:4px;transition:background .2s ease}.log-entry:hover{background:#3b82f60d}.log-timestamp{color:#94a3b899}.log-type{font-weight:600}.log-type.critical{color:#ef4444}.log-type.recovery{color:#10b981}.log-message{color:#f1f5f9e6}.system-health{border-top:1px solid rgba(51,65,85,.5);padding-top:1rem;margin-top:auto}.health-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.health-header h3{font-size:.75rem;font-weight:600;color:#94a3b8b3;letter-spacing:.5px;margin:0}.health-metrics{display:flex;flex-direction:column;gap:1rem}.health-metric{display:flex;align-items:center;gap:1rem}.metric-label{font-size:.7rem;font-weight:600;color:#94a3b8b3;min-width:100px}.metric-bar{flex:1;height:6px;background:#1e293bcc;border-radius:3px;overflow:hidden}.metric-fill{height:100%;background:linear-gradient(90deg,#10b981,#059669);border-radius:3px;transition:width .5s ease}.metric-value{font-size:.75rem;font-weight:600;color:#10b981;min-width:80px;text-align:right}.metric-value.uptime{color:#f1f5f9}.feed-container::-webkit-scrollbar{width:6px}.feed-container::-webkit-scrollbar-track{background:#1e293b80;border-radius:3px}.feed-container::-webkit-scrollbar-thumb{background:#3b82f680;border-radius:3px}.feed-container::-webkit-scrollbar-thumb:hover{background:#3b82f6b3}@media(max-width:1024px){.live-feed{padding:1.25rem}.feed-container{max-height:500px;min-height:350px;padding:.875rem}.log-entry{font-size:.7rem;padding:.45rem}.health-metric{gap:.75rem}.metric-label{min-width:90px;font-size:.65rem}.metric-value{min-width:70px;font-size:.7rem}}@media(max-width:768px){.live-feed{padding:1rem}.section-header h2{font-size:.9rem}.feed-container{max-height:400px;min-height:300px;padding:.75rem;margin:.75rem 0}.log-entry{font-size:.65rem;padding:.4rem;flex-wrap:wrap;gap:.25rem}.log-timestamp{font-size:.6rem}.log-type{font-size:.65rem}.log-message{font-size:.65rem;flex:1;min-width:100%}.system-health{padding-top:.75rem}.health-header h3{font-size:.7rem}.health-metrics{gap:.75rem}.health-metric{flex-direction:column;align-items:flex-start;gap:.5rem}.metric-label{min-width:auto;width:100%;font-size:.65rem}.metric-bar{width:100%}.metric-value{min-width:auto;width:100%;text-align:left;font-size:.7rem}}@media(max-width:480px){.live-feed{padding:.875rem}.section-header{margin-bottom:.75rem}.section-header h2{font-size:.85rem}.feed-container{max-height:350px;min-height:250px;padding:.65rem;margin:.65rem 0}.log-entry{font-size:.6rem;padding:.35rem}.system-health{padding-top:.65rem}.health-metrics{gap:.65rem}}.auth-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.auth-card{background:#fff;border-radius:12px;padding:40px;box-shadow:0 20px 40px #0000001a;width:100%;max-width:400px}.auth-title{text-align:center;margin-bottom:30px;color:#333;font-size:28px;font-weight:600}.auth-subtitle{text-align:center;margin-bottom:30px;color:#666;font-size:16px;line-height:1.5}.auth-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column}.form-label{margin-bottom:8px;color:#555;font-weight:500;font-size:14px}.form-input{padding:12px 16px;border:2px solid #e1e5e9;border-radius:8px;font-size:16px;transition:border-color .3s ease}.form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-row{display:flex;gap:15px}.form-row .form-group{flex:1}.auth-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:14px 20px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;margin-top:10px}.auth-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.auth-button:disabled{opacity:.7;cursor:not-allowed;transform:none}.error-message{background:#fee;color:#c33;padding:12px;border-radius:6px;border:1px solid #fcc;font-size:14px;text-align:center}.success-message{background:#efe;color:#363;padding:12px;border-radius:6px;border:1px solid #cfc;font-size:14px;text-align:center}.auth-links{margin-top:30px;text-align:center;display:flex;flex-direction:column;gap:10px}.link-button{background:none;border:none;color:#667eea;cursor:pointer;font-size:14px;text-decoration:underline;transition:color .2s ease}.link-button:hover{color:#764ba2}.back-button{position:absolute;top:20px;left:20px;background:#f5f5f5;border:1px solid #ddd;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;transition:background-color .2s ease}.back-button:hover{background:#e9e9e9}@media(max-width:480px){.auth-container{padding:10px}.auth-card{padding:30px 20px}.auth-title{font-size:24px}}.app{min-height:100vh;background:linear-gradient(135deg,#0a0f19,#1a1f2e);color:#f1f5f9}.main-content{padding:1.5rem;max-width:1920px;margin:0 auto}.dashboard-grid{display:grid;grid-template-columns:400px 1fr 400px;gap:1.5rem;align-items:start}.dashboard-grid>:nth-child(1){grid-column:1;grid-row:1 / 3}.dashboard-grid>:nth-child(2){grid-column:3;grid-row:1 / 3}.dashboard-grid>:nth-child(3){grid-column:2;grid-row:1 / 3}@media(max-width:1920px){.main-content{padding:1.5rem 2rem}}@media(max-width:1600px){.dashboard-grid{grid-template-columns:350px 1fr 350px;gap:1.25rem}.main-content{padding:1.25rem 1.5rem}}@media(max-width:1400px){.dashboard-grid{grid-template-columns:1fr 1fr;gap:1.25rem}.dashboard-grid>:nth-child(1){grid-column:1;grid-row:1}.dashboard-grid>:nth-child(2){grid-column:2;grid-row:1}.dashboard-grid>:nth-child(3){grid-column:1 / 3;grid-row:2}.main-content{padding:1.25rem}}@media(max-width:1024px){.main-content{padding:1rem 1.25rem}.dashboard-grid{gap:1rem}}@media(max-width:768px){.main-content{padding:1rem}.dashboard-grid{grid-template-columns:1fr;gap:1rem}.dashboard-grid>:nth-child(1),.dashboard-grid>:nth-child(2),.dashboard-grid>:nth-child(3){grid-column:1;grid-row:auto}}@media(max-width:480px){.main-content{padding:.75rem}.dashboard-grid{gap:.875rem}}@media(max-width:360px){.main-content{padding:.5rem}.dashboard-grid{gap:.75rem}}
