/* V75 Auto-Trade page (js/autotrade.js) */
.at-root { max-width: 860px; margin: 0 auto 60px; display: grid; gap: 16px; }
.at-card { border: 1px solid var(--border); border-radius: 18px; background: var(--bg-card); padding: 20px; }
.at-card h3 { margin: 0 0 12px; font-family: 'Sora', sans-serif; font-size: 1.08rem; color: var(--text); }
.at-card p { margin: 0 0 12px; color: var(--text-muted); line-height: 1.6; }
.at-card.at-live { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); }
.at-skel { height: 160px; opacity: .5; }
.at-sub { color: var(--text-muted); font-size: .88rem; margin: 0; }
.at-err { color: #ef4444; }
.at-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.at-steps div { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--bg-card); display: grid; gap: 4px; }
.at-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.at-steps b { color: var(--text); } .at-steps small { color: var(--text-muted); font-size: .8rem; }
.at-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 16px; }
.at-prices div { border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
.at-prices b { display: block; font-size: 1.4rem; color: var(--text); } .at-prices small { color: var(--text-muted); }
.at-prices .at-hl { border-color: var(--gold); }
.at-form { display: grid; gap: 12px; }
.at-form label { display: grid; gap: 6px; font-size: .86rem; color: var(--text-muted); }
.at-form input[type=number], .at-form input:not([type]), .at-form input[type=password], .at-form select { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; min-width: 0; }
.at-form fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 10px; margin: 0; }
.at-form legend { padding: 0 6px; color: var(--text); font-weight: 600; font-size: .9rem; }
.at-radio { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; cursor: pointer; }
.at-radio span { display: grid; gap: 2px; } .at-radio b { color: var(--text); font-size: .9rem; } .at-radio small { font-size: .8rem; }
.at-check { display: flex !important; align-items: flex-start; gap: 8px; cursor: pointer; }
.at-check small { color: var(--text-muted); }
.at-disc { font-size: .8rem !important; line-height: 1.5; }
.at-mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.at-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.at-note { border-radius: 12px; padding: 10px 12px; font-size: .85rem; border: 1px solid var(--border); color: var(--text-muted); margin-bottom: 4px; }
.at-warn { border-color: #eab308; color: #eab308; background: color-mix(in srgb, #eab308 10%, transparent); }
.at-bad { border-color: #ef4444; color: #ef4444; background: color-mix(in srgb, #ef4444 10%, transparent); }
.at-lock, .at-tip { font-size: .8rem !important; margin: 0 !important; }
.at-acc { display: grid; gap: 6px; color: var(--text); margin-bottom: 12px; overflow-wrap: anywhere; }
.at-bal { color: var(--text-muted); font-size: .9rem; } .at-bal b { color: var(--text); }
.at-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #eab308; }
.at-dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.at-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.at-danger { color: #ef4444 !important; }
.at-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-right: auto; font-weight: 600; color: var(--text); }
.at-switch input { display: none; }
.at-switch i { width: 44px; height: 24px; border-radius: 99px; background: var(--border); position: relative; transition: .2s; }
.at-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.at-switch input:checked + i { background: var(--green); } .at-switch input:checked + i::after { left: 23px; }
.at-hist { display: grid; gap: 8px; }
.at-h { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.at-h > div:first-child { min-width: 0; display: grid; gap: 3px; color: var(--text); }
.at-h small { color: var(--text-muted); font-size: .76rem; overflow-wrap: anywhere; }
.at-hr { text-align: right; display: grid; gap: 3px; font-size: .8rem; color: var(--text-muted); flex: 0 0 auto; }
.at-hr .pos { color: var(--green); } .at-hr .neg { color: #ef4444; }
.at-side { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.at-side.buy { color: var(--green); background: rgba(34, 197, 94, .12); } .at-side.sell { color: #ef4444; background: rgba(239, 68, 68, .12); }
.at-h.skipped, .at-h.cancelled, .at-h.failed { opacity: .7; }
@media (max-width: 640px) {
  .at-steps, .at-prices { grid-template-columns: 1fr; }
  .at-two { grid-template-columns: 1fr; }
  .at-card { padding: 16px; }
}
