.bot-grid { display:grid; grid-template-columns:repeat(3,minmax(260px,1fr)); gap:14px; }
.bot-card { background:linear-gradient(145deg,#13161c,#0f1217); border:1px solid var(--line); padding:20px; }
.bot-card.running { border-color:#315843; box-shadow:inset 0 2px var(--green); }
.bot-card-head { display:flex; align-items:center; gap:12px; }
.bot-card-head .pair-name { flex:1; }
.status-dot { font:500 9px 'DM Mono'; color:var(--muted); }
.status-dot.running { color:var(--green); }
.bot-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:22px 0; }
.bot-stats div { background:#0c0f13; padding:10px; }
.bot-stats small,.bot-stats strong { display:block; }
.bot-stats small { font-size:8px; color:var(--muted); margin-bottom:6px; }
.bot-stats strong { font:500 11px 'DM Mono'; }
.bot-actions { display:flex; gap:7px; }
.bot-actions button { flex:1; }
.danger-link { border:0; background:transparent; color:#666d77; cursor:pointer; }
.danger-link:hover { color:var(--red); }
.settings-form { width:100%; }
.settings-form .form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.settings-form input { text-transform:none; }
.settings-form select { width:100%; margin-top:8px; background:#0d0f13; border:1px solid var(--line); padding:12px; color:var(--text); }
.settings-form .enabled-field { grid-column:1 / -1; width:calc((100% - 14px) / 2); min-height:63px; margin-top:25px; padding:0; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; }
.settings-form .enabled-field strong,.settings-form .enabled-field small { display:block; }
.settings-form .enabled-field strong { color:var(--text); font-size:11px; font-weight:500; }
.settings-form .enabled-field small { margin-top:5px; color:var(--muted); font-size:9px; }
.settings-form .enabled-field input { width:18px; height:18px; margin:0; padding:0; flex:0 0 auto; accent-color:var(--lime); cursor:pointer; }
#settingsDialog { width:min(620px,calc(100% - 30px)); }
@media(max-width:1100px) { .bot-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:720px) {
  .bot-grid { grid-template-columns:1fr; }
  .split-heading { display:block; }
  .split-heading .header-actions { margin-top:15px; display:flex; flex-wrap:wrap; }
  .split-heading .header-actions .ghost { display:block; }
  .settings-form .form-grid { grid-template-columns:1fr; }
  .settings-form .enabled-field { width:100%; }
}
