.autotrade-hub{--hub-bg:#03101e;--hub-card:#06172a;--hub-line:rgba(36,153,218,.29);--hub-text:#e9f5ff;--hub-muted:#9eb7ce;display:grid;gap:18px;max-width:1680px;margin:0 auto;padding:8px 0 38px;color:var(--hub-text)}
.autotrade-hub *,.hub-modal *{box-sizing:border-box}
.autotrade-hub h1,.autotrade-hub h2,.autotrade-hub h3,.hub-modal h2,.hub-modal h3{font-family:Arial,Helvetica,sans-serif;letter-spacing:-.02em}
.hub-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:10px 4px 0}.hub-heading h1{margin:5px 0 4px;font-size:clamp(32px,3.2vw,46px);line-height:1.06;color:#f6fbff}.hub-heading h1 em{font-style:normal;color:#19c9f9}.hub-heading p{margin:0;color:#a9c3da;font-size:14px}.hub-eyebrow,.hub-kicker{color:#55dafa;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.hub-live{display:flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid rgba(0,223,181,.28);border-radius:999px;padding:8px 12px;color:#71f8d6;background:#00dcaa11;font-size:10px;font-weight:800;letter-spacing:.06em}.hub-live i{width:8px;height:8px;border-radius:50%;background:#14ebb6;box-shadow:0 0 13px #14ebb6}.hub-live small{color:#9dbab8;font-size:10px;font-weight:500;letter-spacing:0}
.hub-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.hub-metric{display:flex;align-items:center;gap:13px;min-width:0;border:1px solid var(--hub-line);border-radius:13px;background:linear-gradient(135deg,#082342,#061321 65%);padding:15px 16px;box-shadow:inset 0 1px #ffffff0b,0 10px 26px #0005}.hub-metric-icon{display:grid;width:41px;height:41px;flex:none;place-items:center;border-radius:10px;color:#17c7fb;background:#047cb730;font-size:23px;font-weight:800}.hub-metric div{display:grid;gap:4px;min-width:0}.hub-metric small{color:#a8c6dc;font-size:10px}.hub-metric strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f7fcff;font-size:16px}.hub-metric div>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7f9db4;font-size:10px}
.hub-panel{min-width:0;border:1px solid var(--hub-line);border-radius:15px;background:radial-gradient(circle at 85% -10%,#0b4d7140,transparent 40%),linear-gradient(160deg,#06182b,#03101d 85%);padding:18px 20px;box-shadow:inset 0 1px #ffffff0b,0 16px 36px #0006}.hub-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}.hub-section-title h2{margin:4px 0 2px;font-size:20px}.hub-section-title h3{margin:4px 0 2px;font-size:16px}.hub-section-title p{margin:0;color:var(--hub-muted);font-size:11px;line-height:1.45}.hub-text-button{flex:none;border:0;color:#29d4ff;background:transparent;padding:8px;font-size:11px;font-weight:800}.hub-text-button:hover{text-decoration:underline}
.hub-exchange-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin-top:16px}.hub-exchange{display:flex;align-items:center;gap:12px;min-width:0;border:1px solid #2378a34a;border-radius:10px;background:#051424;padding:11px}.hub-exchange-mark{display:grid;width:36px;height:36px;flex:none;place-items:center;border:1px solid #13c9ed66;border-radius:9px;color:#55e7fb;background:#057da332;font-size:18px;font-weight:900}.hub-exchange>div{display:grid;gap:2px;min-width:0;flex:1}.hub-exchange strong{font-size:13px}.hub-exchange small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#91abc1;font-size:10px}
.hub-status{display:inline-flex;align-items:center;justify-content:center;max-width:100%;border:1px solid #3d86aa66;border-radius:999px;color:#a9c3d4;background:#17324855;padding:4px 9px;font-size:9px;font-weight:800;line-height:1.2;text-align:center;white-space:nowrap}.hub-status.good{border-color:#00d7a678;color:#65f5c6;background:#00d7a61a}.hub-status.warn{border-color:#f4bd4980;color:#ffe39a;background:#f4bd4916}.hub-status.muted{border-color:#55738a65;color:#9db6c8;background:#253c4c50}
.hub-strategies{display:grid;gap:13px}.hub-manager{display:flex;align-items:center;gap:10px;border:1px solid #00bfe077;border-radius:12px;background:#0a355042;padding:10px 13px}.hub-manager>span{color:#2adeff;font-size:25px}.hub-manager>div{display:grid;gap:2px}.hub-manager strong{color:#5ee6ff;font-size:12px}.hub-manager small{color:#a1bfd1;font-size:10px}.hub-bot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.hub-bot{--bot:#16dac4;min-width:0;display:grid;gap:14px;border:1px solid color-mix(in srgb,var(--bot) 55%,transparent);border-radius:13px;background:linear-gradient(140deg,color-mix(in srgb,var(--bot) 12%,#061628),#051321 65%);padding:15px;cursor:pointer;box-shadow:inset 0 1px #ffffff0a,0 10px 24px #0005;transition:transform .18s,border-color .18s,box-shadow .18s}.hub-bot:hover,.hub-bot:focus-visible{transform:translateY(-2px);border-color:var(--bot);box-shadow:0 0 22px color-mix(in srgb,var(--bot) 20%,transparent),0 14px 28px #0007;outline:0}.hub-bot.violet,.hub-bot-icon.violet{--bot:#a75cff}.hub-bot.blue,.hub-bot-icon.blue{--bot:#2d9dff}.hub-bot.amber,.hub-bot-icon.amber{--bot:#ffbc27}.hub-bot.cyan,.hub-bot-icon.cyan{--bot:#04cff2}.hub-bot.indigo,.hub-bot-icon.indigo{--bot:#7d85ff}.hub-bot-top{display:flex;align-items:flex-start;gap:11px;min-width:0}.hub-bot-icon{display:grid;width:47px;height:47px;flex:none;place-items:center;border:1px solid var(--bot,#16dac4);border-radius:11px;color:var(--bot,#16dac4);background:color-mix(in srgb,var(--bot,#16dac4) 12%,#03111f);box-shadow:0 0 17px color-mix(in srgb,var(--bot,#16dac4) 20%,transparent);font-size:27px;font-weight:800}.hub-bot-top>div{min-width:0;flex:1}.hub-bot h3{margin:0 0 4px;font-size:14px}.hub-bot p{margin:0;color:#9db5ca;font-size:10px;line-height:1.45}.hub-bot-top>.hub-status{flex:none}.hub-bot-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-top:1px solid #4c9bb52b;padding-top:11px}.hub-bot-data>span{display:grid;gap:4px;min-width:0}.hub-bot-data small{color:#849fb4;font-size:9px}.hub-bot-data strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dceefa;font-size:11px}.hub-bot-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.hub-bot-footer>span{color:#7e9eb6;font-size:10px}.hub-bot-footer button,.hub-modal-actions .primary{border:1px solid #1bb9fa;border-radius:8px;color:#001827;background:linear-gradient(180deg,#36c9ff,#0b9cdf);padding:8px 16px;font-size:11px;font-weight:900;box-shadow:0 4px 18px #069de64a}.hub-bot-footer button b{font-size:14px}
.hub-performance-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.8fr);gap:12px}.hub-periods,.hub-modal-tabs{display:flex;gap:4px;border:1px solid #278ac24d;border-radius:9px;background:#061322;padding:3px}.hub-periods button,.hub-modal-tabs button{border:0;border-radius:6px;color:#8eacc3;background:transparent;padding:6px 10px;font-size:10px;font-weight:800}.hub-periods button.selected,.hub-modal-tabs button.selected{color:#ddf8ff;background:#096594;box-shadow:0 0 0 1px #25bcff,0 0 13px #1abfff55}.hub-pnl-total{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:16px 0 3px}.hub-pnl-total span{color:#a6c2d4;font-size:11px}.hub-pnl-total strong{color:#21e8b2;font-size:24px}.hub-pnl-total small{color:#7d9ab1;font-size:10px}.hub-chart{height:185px;margin:6px 0 12px}.hub-chart svg{display:block;width:100%;height:calc(100% - 22px);border-bottom:1px solid #2b698642;background:repeating-linear-gradient(0deg,transparent 0 39px,#1c648524 40px),repeating-linear-gradient(90deg,transparent 0 78px,#1c648524 79px)}.hub-chart-zero{stroke:#88b9c080;stroke-width:.3;stroke-dasharray:1.3 1.3}.hub-chart-axis{display:flex;justify-content:space-between;color:#82a0b6;font-size:10px;padding-top:5px}.hub-chart-empty,.hub-empty,.hub-loading{display:grid;min-height:120px;place-content:center;border:1px dashed #2e8caa66;border-radius:9px;color:#9db9ca;background:#06142270;padding:16px;text-align:center;font-size:11px;line-height:1.5}.hub-stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hub-stat-row .hub-metric{padding:10px;gap:8px;background:#071727}.hub-stat-row .hub-metric-icon{width:30px;height:30px;font-size:17px}.hub-stat-row .hub-metric strong{font-size:12px}.hub-stat-row .hub-metric small,.hub-stat-row .hub-metric div>span{font-size:9px}
.hub-pnl-list{display:grid;gap:0;margin-top:14px}.hub-pnl-row{display:grid;grid-template-columns:minmax(95px,1fr) auto minmax(50px,.65fr) 42px;align-items:center;gap:8px;min-height:42px;border-top:1px solid #3a7fa02e;font-size:10px}.hub-pnl-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hub-pnl-row strong{color:#29e1b2;font-size:10px;white-space:nowrap}.hub-pnl-row strong.negative{color:#ff627e}.hub-pnl-row small{color:#a5bdd0;text-align:right}.hub-rate{height:8px;overflow:hidden;border-radius:99px;background:#21374b}.hub-rate i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1490e2,#29dfb5)}.hub-source-note{margin:12px 0 0;color:#819caf;font-size:10px;line-height:1.5}.hub-table-wrap{overflow:auto;max-width:100%;margin-top:13px}.hub-table{width:100%;min-width:850px;border-collapse:collapse;font-size:10px}.hub-table th{color:#83a6bb;text-align:left;font-size:9px;font-weight:700}.hub-table td,.hub-table th{padding:9px 8px;border-bottom:1px solid #397e9e29;white-space:nowrap}.hub-table td{color:#d6eaf7}.hub-table td .hub-status{font-size:8px}.hub-footlinks{display:flex;flex-wrap:wrap;gap:8px}.hub-footlinks button{border:1px solid #2f8aaa66;border-radius:8px;color:#9fd9ee;background:#071a29;padding:8px 12px;font-size:10px}
.hub-modal{position:relative;width:min(1080px,100%);max-height:min(92vh,960px);overflow:hidden;border-color:#1d9fda;border-radius:18px;background:radial-gradient(circle at 16% 0,#123869,#071425 35%,#03101c 90%);padding:0;box-shadow:0 0 65px #1477d339,0 28px 90px #000d}.hub-modal-close{position:absolute;z-index:5;top:13px;right:14px;width:31px;height:31px;border:1px solid #4084a050;border-radius:7px;color:#c4d9e8;background:#07182c;font-size:21px}.hub-modal-scroll{max-height:min(92vh,960px);overflow-y:auto;padding:24px;scrollbar-color:#287ba1 #061321}.hub-modal-header{display:flex;align-items:center;gap:15px;padding-right:40px}.hub-modal-header>div{flex:1;min-width:0}.hub-modal-header h2{margin:4px 0;font-size:25px}.hub-modal-header p{margin:0;color:#b1c7d9;font-size:12px}.hub-tags{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.hub-tags span{border:1px solid #2785ae69;border-radius:99px;color:#9ed7ef;background:#05314b55;padding:5px 10px;font-size:9px}.hub-modal-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.9fr);gap:10px}.hub-modal-main{display:grid;gap:10px}.hub-modal-card{min-width:0;border:1px solid #2989b449;border-radius:12px;background:#06182baf;padding:15px}.hub-modal-card h3{margin:4px 0 6px;font-size:15px}.hub-api-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.hub-api-card p{margin:0;color:#9ebad0;font-size:10px}.hub-api-card>small{grid-column:1/-1;color:#8daac0;font-size:9px}.hub-api-card button,.hub-modal-actions button{border:1px solid #2b97c47a;border-radius:8px;color:#dff5ff;background:#0b2943;padding:9px 11px;font-size:10px;font-weight:800}.hub-assignment{display:grid;gap:4px;margin-top:9px}.hub-assignment-row{display:flex;align-items:center;gap:8px;border:1px solid #2d78933d;border-radius:8px;background:#06121e;padding:6px 8px}.hub-bot-mini{display:grid;width:27px;height:27px;flex:none;place-items:center;border-radius:6px;color:#34dbe3;background:#0a567357;font-size:17px}.hub-bot-mini.violet{color:#b97aff}.hub-bot-mini.amber{color:#f6c453}.hub-bot-mini.blue{color:#70b9ff}.hub-bot-mini.indigo{color:#929dff}.hub-assignment-row>div{display:grid;gap:2px;min-width:0;flex:1}.hub-assignment-row strong{font-size:10px}.hub-assignment-row small{color:#829fb5;font-size:9px}.hub-assignment-row .hub-status{font-size:8px}.hub-switch{width:28px;height:16px;flex:none;border-radius:99px;background:#25455a;padding:2px}.hub-switch i{display:block;width:12px;height:12px;border-radius:50%;background:#9ab5c5}.hub-switch.on{background:#078ab0}.hub-switch.on i{margin-left:auto;background:#e2fbff}.hub-settings dl{display:grid;gap:0;margin:12px 0}.hub-settings dl>div{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #2b73943b;padding:9px 0}.hub-settings dt{color:#a3bed2;font-size:10px}.hub-settings dd{margin:0;color:#e4f6ff;font-size:10px;text-align:right}.hub-modal-follow{margin-top:10px}.hub-modal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.hub-modal-stats .hub-metric{padding:10px;background:#071d32}.hub-modal-stats .hub-metric-icon{width:29px;height:29px;font-size:17px}.hub-modal-stats .hub-metric strong{font-size:12px}.hub-modal-tabs{width:max-content;margin-bottom:9px}.hub-modal-pnl{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.hub-modal-pnl>div{display:grid;gap:5px;border:1px solid #278bab44;border-radius:9px;padding:13px;background:#071927}.hub-modal-pnl small,.hub-modal-pnl span{color:#91aec0;font-size:10px}.hub-modal-pnl strong{color:#2be6bb;font-size:19px}.hub-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.hub-modal-actions .primary{font-size:10px}
@media(max-width:1350px){.hub-bot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-performance-grid{grid-template-columns:1fr}.hub-stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.hub-modal-columns{grid-template-columns:1fr}.hub-modal-scroll{padding:18px}.hub-modal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.hub-heading{display:grid;gap:10px}.hub-heading h1{font-size:32px}.hub-live{width:max-content}.hub-summary,.hub-bot-grid{grid-template-columns:1fr}.hub-panel{padding:15px}.hub-section-title{align-items:flex-start;flex-wrap:wrap}.hub-manager{width:100%}.hub-bot-top{flex-wrap:wrap}.hub-bot-top>div{min-width:calc(100% - 60px)}.hub-bot-top>.hub-status{margin-left:58px}.hub-stat-row{grid-template-columns:1fr 1fr}.hub-pnl-row{grid-template-columns:minmax(90px,1fr) auto 35px}.hub-pnl-row .hub-rate{display:none}.hub-modal{width:100%;max-height:95dvh;border-radius:16px 16px 0 0}.hub-modal-scroll{max-height:95dvh}.hub-modal-header{align-items:flex-start;flex-wrap:wrap}.hub-modal-header>div{min-width:calc(100% - 65px)}.hub-modal-header>.hub-status{margin-left:60px}.hub-modal-pnl{grid-template-columns:1fr}}
@media(max-width:400px){.hub-stat-row,.hub-modal-stats{grid-template-columns:1fr}.hub-bot-data{grid-template-columns:1fr 1fr}.hub-modal-actions{flex-direction:column}.hub-modal-actions button{width:100%}}
.hub-live.delayed{border-color:#d9a43875;color:#ffda86;background:#d9a43816}.hub-live.delayed i{background:#efb341;box-shadow:0 0 10px #efb341}
.hub-state-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #c895376b;border-radius:11px;background:#79551324;padding:11px 14px;color:#f9dfab;font-size:11px}.hub-state-banner strong{letter-spacing:.08em}.hub-state-banner span{flex:1;min-width:190px}.hub-state-banner button,.hub-empty button{border:1px solid #4cbce6;border-radius:7px;background:#0c3b59;color:#e7faff;padding:7px 12px;font-size:11px;font-weight:800}.hub-state-banner.stale{border-color:#dfad5685}.hub-state-banner.disconnected,.hub-state-banner.error{border-color:#e36d7280;background:#67202a33}
.hub-bot-footer{align-items:stretch;flex-wrap:wrap}.hub-bot-footer>span{flex-basis:100%}.hub-bot-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;width:100%}.hub-bot-actions button{min-width:0;padding:9px 8px;white-space:nowrap}.hub-bot-actions button.secure{border-color:#198bb8;color:#c8f4ff;background:linear-gradient(180deg,#0c3a5a,#08243d);box-shadow:none}.hub-bot-actions button:disabled,.hub-modal-actions button:disabled{cursor:not-allowed;opacity:.48;box-shadow:none}.hub-secure-note{display:block;color:#b6a677;font-size:10px;line-height:1.4}.hub-diagnostic-note{width:100%;margin:9px 0 0;border:1px solid #c9954d70;border-radius:8px;background:#4c351d57;padding:9px;color:#f4d5a2;font-size:10px;line-height:1.5}.hub-modal-actions{flex-wrap:wrap}.hub-modal-actions .hub-diagnostic-note{margin:0}
@media(max-width:400px){.hub-bot-actions{grid-template-columns:1fr 1fr}.hub-bot-actions button{font-size:10px;padding:9px 5px}}

.hub-safety-reason{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal;padding:8px 10px;border-left:2px solid #ffbc64;border-radius:6px;background:#ffbc6414;color:#ffd6a0!important}
