:root { --side-w: 230px; --buy: #22c55e; --sell: #ef4444; }
body { background: #0d1117; }
.min-vw-0 { min-width: 0; }
.sidebar { width: var(--side-w); min-height: 100vh; background: #0f141b; border-right: 1px solid #222a35; display: flex; flex-direction: column; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; } }
.sidebar .nav-link { color: #aab4c0; border-radius: .4rem; padding: .45rem .7rem; font-size: .92rem; }
.sidebar .nav-link:hover { background: #18202b; color: #fff; }
.sidebar .nav-link.active { background: #1f6feb22; color: #79b8ff; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #1f6feb, #22c55e); display: grid; place-items: center; font-weight: 700; color: #fff; }
.login-bg { background: radial-gradient(circle at 30% 20%, #16243a, #0d1117 60%); }
.login-card { width: 340px; background: #111821; border: 1px solid #222a35; }
.card { background: #111821; border-color: #222a35; }
.card-header { background: #141c26; border-color: #222a35; font-weight: 600; font-size: .92rem; }
.kpi-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #8b98a8; }
.kpi-value { font-size: 1.5rem; font-weight: 700; }
.chart-box { height: 430px; width: 100%; }
.chart-sm { height: 260px; }
.tall { max-height: 520px; overflow: auto; }
.table { --bs-table-bg: transparent; }
.table thead th { font-size: .75rem; text-transform: uppercase; color: #8b98a8; font-weight: 600; white-space: nowrap; }
.side-buy { color: var(--buy); font-weight: 700; }
.side-sell { color: var(--sell); font-weight: 700; }
.pos { color: var(--buy); } .neg { color: var(--sell); }
.badge.st-open { background: #1f6feb; } .badge.st-target { background: #15803d; }
.badge.st-stop { background: #b91c1c; } .badge.st-expired { background: #52525b; }
.channel { border: 1px solid #222a35; border-radius: .5rem; padding: .6rem .7rem; margin-bottom: .6rem; }
.sub-card .list-group-item { background: transparent; border-color: #222a35; }
.sub-row.off { opacity: .55; }
.strat-params { font-family: ui-monospace, monospace; font-size: .8rem; min-height: 220px; }
tr.clickable { cursor: pointer; }
.kpi-mini { background: #111821; border: 1px solid #222a35; border-radius: .5rem; padding: .6rem .8rem; }
.kpi-mini .v { font-size: 1.2rem; font-weight: 700; }
.kpi-mini .l { font-size: .72rem; color: #8b98a8; text-transform: uppercase; }
