:root{--bg:#06111c;--bg2:#0a1724;--panel:#111d2a;--panel2:#182536;--line:#314255;--line2:#203243;--text:#e7f0fb;--muted:#93a4b8;--cyan:#22d3ee;--cyan2:#9be8ff;--green:#5ff0a7;--red:#ff9b9b;--amber:#f7c76c;--mono:'JetBrains Mono','SFMono-Regular',Consolas,monospace;--sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:var(--sans);background:radial-gradient(circle at 20% 0%,rgba(34,211,238,.10),transparent 34rem),linear-gradient(180deg,#07111c 0%,#050d16 100%);color:var(--text)}body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(rgba(155,232,255,.12) 1px,transparent 1px);background-size:22px 22px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent 65%)}.font-mono,.num,code,pre,table td{font-family:var(--mono)}.glass-card{border:1px solid var(--line);background:linear-gradient(180deg,rgba(24,37,54,.92),rgba(14,25,38,.92));box-shadow:0 18px 60px rgba(0,0,0,.25);border-radius:1rem}.panel{border:1px solid var(--line);background:rgba(17,29,42,.88);border-radius:1rem}.panel-soft{border:1px solid var(--line2);background:rgba(10,23,36,.74);border-radius:.875rem}.eyebot-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.75rem;padding:.7rem 1rem;font-weight:700;transition:.18s ease;border:1px solid transparent}.eyebot-button-primary{background:linear-gradient(90deg,#14c8ee,#8ee7ff);color:#04111c;box-shadow:0 0 24px rgba(34,211,238,.22)}.eyebot-button-secondary{border-color:var(--line);background:rgba(24,37,54,.8);color:var(--text)}.eyebot-button-danger{border-color:rgba(248,113,113,.45);background:rgba(127,29,29,.35);color:#fecaca}.status-pill{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;border:1px solid var(--line);padding:.25rem .55rem;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.status-running,.status-active,.status-success,.status-valid{background:rgba(16,185,129,.13);border-color:rgba(95,240,167,.38);color:var(--green)}.status-paused,.status-paper,.status-draft,.status-unvalidated{background:rgba(148,163,184,.13);border-color:rgba(148,163,184,.32);color:#d6e2ef}.status-error,.status-invalid,.status-stopped{background:rgba(244,63,94,.12);border-color:rgba(255,155,155,.35);color:var(--red)}.status-warning{background:rgba(245,158,11,.12);border-color:rgba(247,199,108,.36);color:var(--amber)}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.metric-card{border:1px solid var(--line);background:linear-gradient(180deg,rgba(24,37,54,.88),rgba(14,25,38,.86));border-radius:1rem;padding:1rem}.metric-card .label{color:var(--muted);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:800}.metric-card .value{font-family:var(--mono);font-size:1.65rem;font-weight:800;margin-top:.7rem}.app-shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr)}.app-sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);background:rgba(11,22,34,.96);backdrop-filter:blur(16px);padding:1.25rem;z-index:30}.app-main{min-width:0}.app-topbar{height:72px;border-bottom:1px solid var(--line);background:rgba(7,17,28,.78);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 1.5rem;position:sticky;top:0;z-index:20}.app-content{padding:1.5rem;max-width:1540px;margin:0 auto}.nav-link{display:flex;align-items:center;gap:.8rem;border-radius:.85rem;padding:.82rem .9rem;color:#d1deea;border:1px solid transparent;transition:.16s ease}.nav-link:hover{background:rgba(24,37,54,.65);color:white}.nav-link.active{background:linear-gradient(90deg,rgba(34,211,238,.14),rgba(34,211,238,.03));border-color:rgba(155,232,255,.45);color:var(--cyan2);box-shadow:inset 3px 0 0 var(--cyan)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:1rem}.eyebot-table{width:100%;border-collapse:separate;border-spacing:0}.eyebot-table th{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:#c8d5e2;text-align:left;background:rgba(24,37,54,.85);padding:1rem}.eyebot-table td{padding:1rem;border-top:1px solid var(--line2);vertical-align:middle}.empty-state{border:1px dashed rgba(155,232,255,.35);background:rgba(14,116,144,.08);border-radius:1rem;padding:2rem;text-align:center;color:#c7d7e8}.form-input{width:100%;border:1px solid var(--line);background:rgba(6,17,28,.88);border-radius:.75rem;padding:.75rem .85rem;color:var(--text);outline:none}.form-input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(34,211,238,.12)}.label{display:block;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:#9fb0c3;font-weight:800;margin-bottom:.4rem}.risk-banner{border:1px solid rgba(248,113,113,.45);background:rgba(127,29,29,.24);color:#fecaca;border-radius:1rem;padding:1rem}.terminal-grid{background-image:linear-gradient(rgba(155,232,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(155,232,255,.06) 1px,transparent 1px);background-size:28px 28px}@media(max-width:1023px){.app-shell{display:block}.app-sidebar{display:none}.app-sidebar.open{display:block;position:fixed;inset:0 auto 0 0;width:min(88vw,320px);height:100vh}.app-content{padding:1rem}.app-topbar{height:auto;min-height:64px;padding:.75rem 1rem}.mobile-card-table thead{display:none}.mobile-card-table,.mobile-card-table tbody,.mobile-card-table tr,.mobile-card-table td{display:block;width:100%}.mobile-card-table tr{border-top:1px solid var(--line2);padding:.75rem}.mobile-card-table td{border:0!important;padding:.35rem 0!important}.mobile-card-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.15rem}}

.dust-bucket-card{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem;border:1px solid var(--line2);border-radius:12px;background:rgba(4,20,32,.5)}.dust-bucket-copy{display:grid;gap:.25rem}.dust-bucket-copy small{color:var(--muted);font-size:.75rem}.dust-pair{color:var(--cyan2);font-family:var(--mono);font-size:.8rem}.dust-accounting-warning{color:var(--amber)!important}
/* Functional layout repair: keep the authenticated shell's mobile drawer out of the desktop grid. */
#desktopSidebar.app-sidebar{display:flex;flex-direction:column;width:280px;}
.app-main{min-width:0;width:100%;}
.nav-icon{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;min-width:1.6rem;height:1.6rem;border-radius:.55rem;border:1px solid rgba(155,232,255,.24);background:rgba(34,211,238,.08);color:var(--cyan2);font-family:var(--mono);font-size:.68rem;font-weight:900;letter-spacing:.04em;line-height:1;}
.mobile-sidebar,.mobile-sidebar-overlay{display:none;}
.mobile-sidebar-overlay[hidden]{display:none!important;}
@media (min-width:1024px){
  #desktopSidebar.app-sidebar{display:flex!important;position:sticky;top:0;grid-column:1;}
  .app-main{grid-column:2;}
  .mobile-sidebar,.mobile-sidebar.open,.mobile-sidebar-overlay,.mobile-sidebar-overlay.open{display:none!important;}
  #mobileSidebarClose{display:none!important;}
}
@media (max-width:1023px){
  #desktopSidebar.app-sidebar{display:none!important;}
  .mobile-sidebar{position:fixed;inset:0 auto 0 0;z-index:50;display:block;width:min(88vw,320px);height:100vh;padding:1.25rem;border-right:1px solid var(--line);background:rgba(11,22,34,.98);box-shadow:24px 0 80px rgba(0,0,0,.38);transform:translateX(-105%);transition:transform .18s ease;overflow-y:auto;}
  .mobile-sidebar.open{transform:translateX(0);}
  .mobile-sidebar-overlay.open{display:block;position:fixed;inset:0;z-index:40;background:rgba(2,6,12,.62);backdrop-filter:blur(2px);}
  .app-main{width:100%;}
}
@media (max-width:1023px){
  .mobile-sidebar{display:none;}
  .mobile-sidebar.open{display:block;transform:translateX(0);}
}

/* Settings: a mobile-first application surface rather than nested admin panels. */
.settings-page{display:grid;gap:1rem;max-width:1180px;margin:0 auto}.settings-mobile-header{display:flex;align-items:center;gap:.75rem;padding:.25rem 0 .75rem}.settings-menu-button,.settings-icon-button,.settings-copy-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:14px;background:rgba(12,27,42,.8);color:var(--text);font-weight:800}.settings-menu-button{font-size:1.4rem}.settings-mobile-title{min-width:0;flex:1}.settings-mobile-title h1{font-size:1.55rem;line-height:1.2;font-weight:900}.settings-mobile-title p{color:var(--muted);font-size:.75rem;white-space:nowrap}.settings-mobile-brand{font-size:.9rem;font-weight:900}.settings-mobile-brand span{color:var(--cyan)}.settings-desktop-heading{display:none}.settings-section{display:grid;gap:1rem;padding:1.1rem 0;border-top:1px solid rgba(49,66,85,.55)}.settings-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.settings-section-header h2{font-size:1.2rem;font-weight:850}.settings-section-header p{margin-top:.25rem;color:var(--muted);font-size:.85rem}.settings-section-actions{display:flex;gap:.5rem;align-items:center;flex-shrink:0}.settings-section-actions .eyebot-button{padding:.65rem .8rem;white-space:nowrap}.settings-icon-button{font-size:1.3rem}.settings-inline-panel{padding:1rem;border:1px solid rgba(34,211,238,.22);border-radius:18px;background:linear-gradient(145deg,rgba(18,37,54,.92),rgba(9,23,36,.92));box-shadow:0 18px 45px rgba(0,0,0,.18)}#exchangeAccounts{display:grid;gap:.8rem}.exchange-account-card,.twofa-card,.session-card{min-width:0;padding:1rem;border:1px solid rgba(88,116,143,.42);border-radius:18px;background:linear-gradient(145deg,rgba(17,34,50,.94),rgba(8,22,35,.94));box-shadow:0 14px 38px rgba(0,0,0,.2)}.exchange-account-heading{display:grid;gap:.9rem}.exchange-account-identity{display:flex;align-items:center;gap:.8rem;min-width:0}.exchange-account-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;padding:8px;border:1px solid rgba(155,232,255,.38);border-radius:50%;background:linear-gradient(145deg,rgba(15,32,48,.98),rgba(4,17,28,.98));color:var(--cyan2);box-shadow:inset 0 0 16px rgba(155,232,255,.06),0 0 18px rgba(34,211,238,.1)}.exchange-account-identity h3{font-size:1.05rem;font-weight:800}.exchange-account-exchange{color:var(--cyan2);font-size:.68rem;letter-spacing:.1em;font-weight:900}.exchange-account-identity p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;color:var(--muted)}.exchange-account-card>div,.exchange-account-card>p{margin-top:.8rem}.exchange-account-heading>div:last-child,.settings-status-grid{display:flex;flex-wrap:wrap;gap:.45rem}.status-pill{text-transform:none;letter-spacing:.01em;font-size:.72rem;padding:.35rem .6rem}.exchange-validation-meta{font-size:.75rem;color:var(--muted)}.settings-action-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.settings-action-row .eyebot-button{min-height:44px;padding:.6rem;font-size:.78rem}.twofa-card{display:grid;gap:1rem}.twofa-summary{display:flex;gap:1rem;min-width:0}.twofa-device{display:grid;place-items:center;width:58px;height:68px;flex:0 0 58px;color:var(--cyan);border:1px solid rgba(34,211,238,.4);border-radius:16px;background:rgba(34,211,238,.07)}.twofa-device svg{width:36px;height:46px}.twofa-summary-copy{min-width:0;flex:1}.twofa-title-row{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.5rem}.twofa-title-row h3{font-size:1.05rem;font-weight:850}.twofa-setup-flow{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;min-width:0;padding:1rem;border-top:1px solid var(--line2)}.twofa-steps h4{color:var(--cyan);font-weight:850;margin-bottom:.8rem}.twofa-step{display:flex;align-items:center;gap:.7rem;margin:.7rem 0}.twofa-step b{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--cyan);border-radius:50%;color:var(--cyan)}.twofa-step strong,.twofa-step small{display:block}.twofa-step small{color:var(--muted)}.twofa-qr{text-align:center;min-width:0;max-width:100%}.twofa-qr>img{width:min(180px,65vw);max-width:100%;aspect-ratio:1;padding:.55rem;margin:auto;background:white;border-radius:12px}.twofa-manual{min-width:0;max-width:100%;margin-top:.7rem;text-align:left}.twofa-manual summary,.session-details summary{cursor:pointer;color:var(--cyan2);font-weight:700}.twofa-manual code{display:block;max-width:100%;padding:.55rem;margin:.3rem 0;overflow-wrap:anywhere;word-break:break-word;background:#05101a;border-radius:8px}.secret-copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem;min-width:0;max-width:100%}.settings-copy-button{min-height:38px;min-width:auto;padding:0 .7rem}.twofa-setup-flow form{grid-column:1/-1;min-width:0}.twofa-setup-flow form .eyebot-button{width:100%}.sessions-block{display:grid;gap:1rem;padding-top:.4rem}.session-count{padding:.45rem .7rem;border:1px solid var(--line);border-radius:10px;color:#cbd8e6;font-size:.8rem;white-space:nowrap}.sessions-list{display:grid;gap:.75rem}.session-card{display:flex;gap:.8rem}.session-card-current{border-color:rgba(52,211,153,.75);box-shadow:inset 3px 0 0 #34d399,0 14px 38px rgba(0,0,0,.2)}.session-device-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid var(--cyan);border-radius:10px;color:var(--cyan)}.session-device-icon img{display:block;width:22px;height:22px;object-fit:contain}.session-content{display:grid;gap:.6rem;min-width:0;flex:1}.session-title{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.session-title h3{font-weight:850}.session-meta{display:flex;flex-wrap:wrap;gap:.3rem 1rem;color:var(--muted);font-size:.8rem}.session-here{color:var(--cyan);font-size:.78rem;font-weight:700}.session-details p{margin-top:.4rem;overflow-wrap:anywhere;color:var(--muted);font-size:.75rem}.session-content form{margin-top:.2rem}.session-content .eyebot-button{min-height:44px;font-size:.78rem}.settings-security-heading{justify-content:flex-start}.settings-section-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(34,211,238,.5);border-radius:12px;color:var(--cyan);font-size:1.3rem}
@media(min-width:640px){.twofa-setup-flow form .eyebot-button{width:auto}.exchange-account-heading{grid-template-columns:minmax(0,1fr) auto}.settings-action-row{display:flex!important}.twofa-setup-flow{grid-template-columns:minmax(0,1fr) minmax(210px,.8fr);align-items:center}.sessions-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.settings-mobile-header{display:none}.settings-desktop-heading{display:flex;margin-bottom:.5rem}.settings-section{padding:1.5rem;border:1px solid rgba(49,66,85,.7);border-radius:22px;background:rgba(8,21,34,.5)}.settings-page{gap:1.5rem}.exchange-account-card{padding:1.35rem}.settings-action-row{justify-content:flex-end}.twofa-card{padding:1.4rem}.sessions-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.app-content{padding:.8rem}.settings-mobile-brand{display:none}.settings-section-header{gap:.5rem}.settings-section-actions .eyebot-button{font-size:.8rem}.settings-action-row{grid-template-columns:1fr 1fr}.twofa-summary{gap:.7rem}.twofa-device{width:50px;height:60px;flex-basis:50px}.twofa-device svg{width:32px;height:42px}}
@media(prefers-reduced-motion:reduce){.eyebot-button,.mobile-sidebar{transition:none!important}}

/* Bots: compact, touch-first fleet and creation flow. */
.bots-page{display:grid;gap:1rem;max-width:1180px;margin:0 auto;min-width:0}.bots-mobile-header{display:flex;align-items:flex-start;gap:.75rem;padding:.2rem 0 .35rem}.bots-mobile-heading{min-width:0;flex:1}.bots-eyebrow{color:var(--cyan);font-size:.68rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.bots-mobile-heading h1,.bots-page-heading h1{font-size:1.55rem;line-height:1.15;font-weight:900;margin-top:.12rem}.bots-mobile-heading>p:last-child,.bots-page-heading>div>p:last-child{color:var(--muted);font-size:.78rem;line-height:1.4;margin-top:.35rem}.bots-brand{padding-top:.75rem;font-size:.9rem;font-weight:900;white-space:nowrap}.bots-brand span{color:var(--cyan)}.bots-page-heading{display:grid;gap:1rem}.bots-page-heading>div{display:none}.bots-create-primary{width:100%;min-height:50px;font-size:1rem}.bots-filters{display:grid;gap:.9rem;padding:1rem;border:1px solid rgba(88,116,143,.48);border-radius:18px;background:linear-gradient(145deg,rgba(15,32,48,.92),rgba(7,20,32,.9));box-shadow:0 16px 38px rgba(0,0,0,.15)}.bots-filters h2{color:var(--cyan2);font-size:.7rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.bots-search{position:relative}.bots-search-icon{position:absolute;z-index:1;left:.9rem;top:50%;transform:translateY(-52%);color:#b8cae0;font-size:1.65rem;line-height:1}.bots-search .form-input{padding-left:3rem;padding-right:2.8rem}.bots-search-clear{position:absolute;right:.55rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#b8cae0;font-size:1.35rem}.bots-search-clear:hover,.bots-search-clear:focus-visible{background:rgba(148,163,184,.12);color:white}.bots-search-clear[hidden]{display:none}.bots-filter-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.bots-filter-selects label{min-width:0}.bots-filter-selects .form-input{min-height:46px}.bots-list{display:grid;gap:.9rem}.bot-card{display:flex;flex-direction:column;min-width:0;padding:1.05rem;border:1px solid rgba(88,116,143,.5);border-radius:20px;background:radial-gradient(circle at 20% 0,rgba(34,211,238,.07),transparent 45%),linear-gradient(145deg,rgba(15,33,50,.97),rgba(6,20,32,.96));box-shadow:0 18px 45px rgba(0,0,0,.2)}.bot-card[hidden]{display:none}.bot-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem;padding-bottom:1rem;border-bottom:1px solid var(--line2)}.bot-identity{display:flex;align-items:center;gap:.75rem;min-width:0}.bot-exchange-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:1px solid rgba(34,211,238,.5);border-radius:14px;background:rgba(3,25,39,.8);color:var(--cyan);font-size:1.25rem;font-weight:950;box-shadow:inset 0 0 20px rgba(34,211,238,.09)}.bot-exchange-icon img{display:block;width:26px;height:26px;object-fit:contain}.bot-exchange-binance{border-color:rgba(243,186,47,.38);box-shadow:inset 0 0 20px rgba(243,186,47,.08)}.bot-exchange-bitget{border-color:rgba(44,230,222,.42);box-shadow:inset 0 0 20px rgba(44,230,222,.09)}.bot-identity h2{overflow:hidden;text-overflow:ellipsis;font-size:1.05rem;font-weight:900;white-space:nowrap}.bot-identity p{margin-top:.2rem;color:#91aac3;font-size:.74rem;letter-spacing:.04em;white-space:nowrap}.bot-identity p i{padding:0 .25rem;color:var(--cyan);font-style:normal}.bot-status{display:inline-flex;align-items:center;gap:.4rem;flex-shrink:0;padding:.38rem .6rem;border:1px solid var(--line);border-radius:999px;font-size:.72rem}.bot-status i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 9px currentColor}.bot-status.status-running{color:var(--green);border-color:rgba(52,211,153,.4);background:rgba(6,78,59,.24)}.bot-status.status-paused,.bot-status.status-draft{color:var(--amber);border-color:rgba(247,199,108,.3);background:rgba(120,53,15,.16)}.bot-status.status-error,.bot-status.status-stopped{color:var(--red);border-color:rgba(255,155,155,.3);background:rgba(127,29,29,.16)}.bot-metrics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.85rem 0}.bot-metric{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;min-height:82px;padding:.55rem 0}.bot-metric:nth-child(odd){padding-right:.65rem}.bot-metric:nth-child(even){padding-left:.8rem;border-left:1px solid var(--line2)}.bot-metric:nth-child(n+3){border-top:1px solid var(--line2);padding-top:.9rem}.bot-metric .label{font-size:.64rem;margin-bottom:.45rem}.bot-metric strong{display:block;overflow-wrap:anywhere;font-size:.9rem;font-weight:800}.bot-metric strong b{font-size:1.08rem}.bot-metric strong small,.bot-metric>small,.bot-technical{color:var(--muted);font-size:.7rem;font-weight:500}.bot-technical{display:block;overflow:hidden;margin-top:.25rem;text-overflow:ellipsis;white-space:nowrap}.heartbeat{color:#b9cadc}.heartbeat span{color:var(--cyan)}.heartbeat-stale{color:var(--amber)!important}.pnl-positive{color:var(--green)}.pnl-negative{color:var(--red)}.bot-card-error{display:block;margin-bottom:.8rem;padding:.6rem;border-radius:10px;background:rgba(127,29,29,.18);color:#fecaca;font-size:.75rem}.bot-actions{display:grid;margin-top:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;padding-top:.85rem;border-top:1px solid var(--line2)}.bot-actions form,.bot-actions button,.bot-actions>a{width:100%}.bot-actions>.bot-delete{grid-column:1/-1}.bot-actions .eyebot-button{min-height:44px;padding:.6rem;font-size:.8rem}.bot-open{border-color:var(--cyan);background:rgba(6,31,45,.52);color:var(--cyan)}.bots-empty-state{display:grid;justify-items:center;gap:.6rem;padding:2rem 1rem;border:1px dashed rgba(155,232,255,.35);border-radius:18px;background:rgba(14,116,144,.07);text-align:center;color:#c7d7e8}.bots-empty-state>span{font-size:2rem;color:var(--cyan)}.bots-empty-state h2,.bots-empty-state h3{font-size:1.05rem;font-weight:850}.bots-empty-state p{max-width:34rem;color:var(--muted);font-size:.84rem}.bots-empty-state .eyebot-button{margin-top:.3rem}
.bot-modal[hidden]{display:none}.bot-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:1rem}.bot-modal-overlay{position:absolute;inset:0;background:rgba(1,6,12,.82);backdrop-filter:blur(4px)}.bot-create-modal{position:relative;width:min(100%,540px);max-height:calc(100dvh - 2rem);overflow-y:auto;padding:1.2rem;border:1px solid rgba(111,146,179,.68);border-radius:22px;background:radial-gradient(circle at 20% 0,rgba(34,211,238,.08),transparent 50%),linear-gradient(145deg,#102438,#071522);box-shadow:0 32px 100px #000}.bot-create-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.bot-create-modal-header h2{font-size:1.45rem;font-weight:900}.bot-create-modal-header p{max-width:390px;margin-top:.35rem;color:#a7bad0;font-size:.86rem;line-height:1.5}.modal-close{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;color:#a9bad0;font-size:2rem;line-height:1}.modal-close:hover{background:rgba(148,163,184,.1);color:white}.bot-create-error{margin-top:1rem}.bot-create-form{display:grid;gap:1rem;margin-top:1.2rem}.bot-create-form .form-input{min-height:48px}.symbol-status{display:block;margin-top:.4rem;color:var(--muted);font-size:.78rem}.bot-create-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:.35rem}.bot-create-actions .eyebot-button{min-height:46px}.bot-no-accounts{margin-top:1.2rem}.modal-open{overflow:hidden}.symbol-results{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:.7rem;margin-top:.35rem;background:#07131f}.symbol-results button{display:block;width:100%;min-height:44px;padding:.7rem;text-align:left;font-family:var(--mono);border-bottom:1px solid var(--line2)}.symbol-results button:hover,.symbol-results button:focus-visible{background:rgba(34,211,238,.12);color:white;outline:2px solid rgba(34,211,238,.55);outline-offset:-2px}
@media(max-width:390px){.bots-brand{display:none}.bots-mobile-heading h1{font-size:1.4rem}.bots-filter-selects{gap:.55rem}.bot-card{padding:.9rem}.bot-exchange-icon{width:42px;height:42px;flex-basis:42px}.bot-exchange-icon img{width:24px;height:24px}.bot-status{padding:.35rem .48rem}.bot-metric:nth-child(even){padding-left:.6rem}.bot-create-modal{padding:1rem}.bot-create-modal-header p{font-size:.8rem}}
@media(min-width:640px){.bots-page{gap:1.25rem}.bots-filters{grid-template-columns:minmax(0,1.35fr) minmax(420px,1.65fr);align-items:end}.bots-filters h2{grid-column:1/-1}.bots-filter-selects{grid-template-columns:repeat(3,minmax(0,1fr))}.bot-card{padding:1.25rem}.bot-identity h2{font-size:1.2rem}.bot-actions{width:100%;margin-left:0}.bot-create-modal{padding:1.5rem}}
@media(min-width:1024px){.bots-mobile-header{display:none}.bots-page-heading{display:flex;align-items:flex-end;justify-content:space-between}.bots-page-heading>div{display:block}.bots-page-heading h1{font-size:2.25rem}.bots-page-heading>div>p:last-child{font-size:.9rem}.bots-create-primary{width:auto;min-width:190px}.bots-filters{padding:1.25rem}.bots-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.bots-empty-state{grid-column:1/-1}}
.settings-section-icon svg{display:block;width:24px;height:24px}.exchange-account-icon img{display:block;width:28px;height:28px;max-width:70%;object-fit:contain}
.bot-status.status-recovering,.bot-status.status-degraded,.bot-status.status-archiving{color:var(--amber);border-color:rgba(247,199,108,.35);background:rgba(120,53,15,.18)}
.bot-status.status-offline{color:var(--red);border-color:rgba(255,155,155,.35);background:rgba(127,29,29,.18)}
.config-amount-input{display:flex;align-items:stretch;margin-top:.25rem;border:1px solid var(--line);border-radius:.65rem;background:rgba(7,19,31,.9);overflow:hidden}.config-amount-input:focus-within{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(34,211,238,.16)}.config-amount-input .form-input{flex:1;min-width:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}.config-amount-mode{max-width:55%;padding:0 .7rem;border:0;border-left:1px solid var(--line);background:var(--panel2);color:var(--cyan2);font-family:var(--mono);font-weight:700;cursor:pointer}.config-amount-mode:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
.config-amount-help,.config-amount-source{display:block;margin-top:.4rem;font-size:.72rem;color:var(--cyan2)}.config-amount-source{margin-top:.15rem;color:var(--muted)}.config-amount-input:has(input[aria-invalid="true"]){border-color:var(--red)}

.bot-dust-line{display:block;margin-top:.35rem;color:var(--cyan2);font-size:.7rem;font-weight:600}

/* Bot detail: shared EyeBot heading language with a compact, resilient terminal layout. */
.bot-detail-page{min-width:0}.bot-detail-header{display:grid;gap:.75rem;padding:.2rem 0 .35rem}.bot-detail-header-main{display:flex;align-items:flex-start;gap:.75rem;min-width:0}.bot-detail-menu{flex:0 0 44px}.bot-detail-heading{min-width:0;flex:1}.bot-detail-heading h1{overflow-wrap:anywhere;font-size:1.55rem;line-height:1.15;font-weight:900}.bot-detail-heading>p:last-child{overflow:hidden;margin-top:.2rem;color:var(--muted);font-family:var(--mono);font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.bot-detail-brand{padding-top:.75rem}.bot-detail-secondary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-width:0}.bot-detail-back{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;padding:0 .75rem;border:1px solid var(--line);border-radius:12px;color:var(--cyan2);font-weight:800;white-space:nowrap}.bot-detail-actions{display:flex;align-items:stretch;justify-content:flex-end;flex-wrap:wrap;gap:.65rem;min-width:0}.bot-detail-actions .status-pill,.bot-detail-actions .bot-lifecycle-toggle{min-height:44px}.bot-detail-actions .status-pill{justify-content:center;overflow-wrap:anywhere;text-align:center}.account-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.account-summary-item{min-width:0}.account-summary-item>div:last-child{overflow-wrap:anywhere}.account-summary-websocket #wsStatusPill{align-self:flex-start}.bot-detail-tabs{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.bot-detail-tabs>button{flex:0 0 auto;min-height:44px;white-space:nowrap}.bot-detail-page .config-amount-input,.bot-detail-page .history-table-scroll,.bot-detail-page .table-wrap{min-width:0;max-width:100%}
@media(max-width:639px){.bot-detail-secondary{align-items:stretch;flex-direction:column}.bot-detail-back{align-self:flex-start}.bot-detail-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}.bot-detail-actions .bot-lifecycle-toggle{width:100%}.bot-detail-page input,.bot-detail-page select,.bot-detail-page textarea{font-size:16px}.config-amount-mode{max-width:48%;padding:0 .45rem}.account-summary-item>div:last-child{font-size:1rem}}
@media(max-width:390px){.bot-detail-brand{display:none}.bot-detail-header-main{gap:.5rem}.bot-detail-heading h1{font-size:1.4rem}}
@media(max-width:359px){.bot-detail-actions{grid-template-columns:1fr}.config-amount-mode{max-width:50%;font-size:.8rem}}
@media(min-width:640px){.account-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}.bot-detail-actions{flex-wrap:nowrap}}
@media(min-width:1024px){.bot-detail-menu{display:none}.bot-detail-header{gap:1rem}.bot-detail-heading h1{font-size:2rem}.bot-detail-back{padding:0 .9rem}}

/* Reusable residual-balance dialog. */
.dust-modal[hidden]{display:none}.dust-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:1rem}#exchangeTotpModal{z-index:110}.dust-modal-overlay{position:absolute;inset:0;background:rgba(1,6,12,.84);backdrop-filter:blur(4px)}.dust-modal-dialog{position:relative;width:min(100%,860px);max-height:calc(100dvh - 2rem);display:flex;flex-direction:column;overflow:hidden;padding:1.25rem;border:1px solid rgba(111,146,179,.68);border-radius:22px;background:linear-gradient(145deg,#102438,#071522);box-shadow:0 32px 100px #000}.dust-modal-header{display:flex;justify-content:space-between;gap:1rem}.dust-modal-header h2{font-size:1.45rem;font-weight:900}.dust-modal-header p{margin-top:.25rem;color:var(--muted)}.dust-modal-message{margin-top:.75rem;padding:.75rem}.dust-modal-content{display:grid;gap:1rem;min-height:180px;margin-top:1rem;overflow-y:auto;padding-right:.2rem}.dust-bucket-list,.dust-history-list{display:grid;gap:.65rem}.dust-pnl-summary{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.dust-pnl-summary h3{width:100%;font-size:.85rem;color:var(--cyan2)}.dust-back{justify-self:start}.dust-detail-title{font-size:1.2rem;font-weight:850}.dust-tabs{display:flex;border-bottom:1px solid var(--line2)}.dust-tabs button{border:0;border-radius:0;background:transparent}.dust-tabs .dust-tab-active{color:var(--cyan);border-bottom:2px solid var(--cyan)}.dust-detail-view{display:grid;gap:1rem}.dust-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.dust-metric{display:grid;gap:.35rem;padding:.8rem;border:1px solid var(--line2);border-radius:12px;background:rgba(4,20,32,.55)}.dust-metric strong{overflow-wrap:anywhere;font-family:var(--mono)}.dust-provisional{color:var(--muted);font-size:.7rem;line-height:1.35}.dust-metric.positive strong,.dust-history-card.positive [class*=detail-row]:nth-child(5) strong{color:var(--green)}.dust-metric.negative strong,.dust-history-card.negative [class*=detail-row]:nth-child(5) strong{color:var(--red)}.dust-outcome,.dust-confirmation,.dust-unavailable,.dust-technical,.dust-history-card{display:grid;gap:.55rem;padding:1rem;border:1px solid var(--line2);border-radius:14px}.dust-outcome h4,.dust-unavailable h4,.dust-confirm-title{font-weight:850;color:var(--cyan2)}.dust-unavailable{border-color:rgba(247,199,108,.36);background:rgba(120,53,15,.14)}.dust-detail-row{display:flex;justify-content:space-between;gap:1rem;color:var(--muted);font-size:.82rem}.dust-detail-row strong{text-align:right;color:var(--text);overflow-wrap:anywhere}.dust-technical summary{cursor:pointer;color:var(--cyan2);font-weight:700}.dust-technical:not([open])>:not(summary){display:none}.dust-confirm-actions{display:flex;justify-content:flex-end;gap:.65rem}.sessions-remote-empty{grid-column:1/-1;color:var(--muted);font-size:.82rem;text-align:center}.exchange-account-icon img{object-fit:contain}
@media(max-width:639px){.dust-modal{padding:.4rem}.dust-modal-dialog{max-height:calc(100dvh - .8rem);padding:1rem;border-radius:17px}.dust-bucket-card{align-items:stretch;flex-direction:column}.dust-bucket-card .eyebot-button{min-height:44px}.dust-detail-row{display:grid;gap:.15rem}.dust-detail-row strong{text-align:left}.dust-confirm-actions{display:grid;grid-template-columns:1fr}.dust-confirm-actions .eyebot-button{min-height:44px}.dust-history-card{gap:.75rem}}
@media(max-width:390px){.dust-metrics{grid-template-columns:1fr}}

.bot-delete{grid-column:1/-1;border-color:rgba(255,155,155,.38);color:#fecaca;background:transparent}.bot-delete:hover,.bot-delete:focus-visible{background:rgba(127,29,29,.2);border-color:var(--red)}.bot-delete-confirm{background:#b91c1c;color:white;border-color:#ef4444}.bot-delete-confirm:disabled{opacity:.55}.bot-delete-modal{max-width:620px}.bot-delete-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding:.85rem;border:1px solid var(--line2);border-radius:12px}.bot-delete-summary dt{color:var(--muted);font-size:.68rem;text-transform:uppercase}.bot-delete-summary dd{margin-top:.25rem;overflow-wrap:anywhere;font-weight:700}.bot-delete-options{display:grid;gap:.7rem;border:0}.bot-delete-options legend{margin-bottom:.65rem;font-weight:800}.bot-delete-options label{display:flex;align-items:flex-start;gap:.7rem;padding:.85rem;border:1px solid var(--line);border-radius:12px;cursor:pointer}.bot-delete-options label:has(input:checked){border-color:var(--cyan);background:rgba(14,116,144,.12)}.bot-delete-options input{margin-top:.2rem}.bot-delete-options span{display:grid;gap:.25rem}.bot-delete-options small{color:var(--muted);line-height:1.45}@media(max-width:520px){.bot-delete-summary{grid-template-columns:1fr}.bot-delete-modal{max-height:calc(100vh - 1rem);overflow:auto}}

/* Bot detail inventory and readable history tables. */
#dustMainPanel{display:grid;gap:1rem}#dustMainPanel.hidden{display:none}.history-pill{display:inline-flex;padding:.22rem .48rem;border:1px solid var(--line);border-radius:999px;font-family:var(--sans);font-weight:800}.side-buy{color:var(--cyan2);background:rgba(14,116,144,.15)}.side-sell{color:#fbbf8a;background:rgba(154,52,18,.14)}.status-filled{color:var(--green);background:rgba(6,78,59,.2)}.status-new,.status-pending,.status-partially_filled{color:var(--amber);background:rgba(120,53,15,.18)}.status-rejected{color:var(--red);background:rgba(127,29,29,.2)}.status-canceled,.status-expired{color:var(--muted);background:rgba(71,85,105,.18)}.history-date{display:grid;gap:.08rem;white-space:nowrap}.history-date small{color:var(--muted);font-size:.68rem}.history-table-scroll{max-width:100%;overscroll-behavior-inline:contain}.history-table-fills{min-width:47rem;table-layout:fixed}.history-table-fills th,.history-table-fills .history-cell{padding-left:.45rem;padding-right:.45rem}.history-table-fills th:first-child,.history-table-fills .history-cell:first-child{padding-left:.2rem;width:4.5rem;white-space:nowrap}.history-table-fills th:nth-child(2),.history-table-fills .history-cell-1{width:7rem;white-space:nowrap}.history-table-fills th:nth-child(3),.history-table-fills .history-cell-2{width:7rem;white-space:nowrap}.history-table-fills th:nth-child(4),.history-table-fills .history-cell-3{width:8rem;white-space:nowrap}.history-table-fills th:nth-child(5),.history-table-fills .history-cell-4{width:13rem}.history-table-fills th:nth-child(6),.history-table-fills .history-cell-5{width:7.5rem}.execution-fee{display:block;overflow-wrap:anywhere}.execution-fee small{white-space:nowrap}
