*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Inter,system-ui,sans-serif;background:#0d1117;color:#e6e9ef;font-size:13px;display:flex;min-height:100vh}
a{color:inherit;text-decoration:none}
.side{width:220px;background:#11161f;border-right:1px solid #1e2533;padding:18px 12px;position:sticky;top:0;height:100vh;flex:none}
.logo{font-weight:800;font-size:18px;padding:4px 10px 22px}.logo span{color:#22c55e}
.nav a{display:flex;gap:10px;padding:10px 12px;border-radius:8px;color:#8b95a7;margin-bottom:2px}
.nav a:hover{background:#1a2130;color:#fff}.nav a.on{background:#1d2a3f;color:#fff;box-shadow:inset 3px 0 #3b82f6}
.nav .grp{font-size:10px;text-transform:uppercase;color:#4b5567;padding:16px 12px 6px;letter-spacing:.08em}
.demo{position:absolute;bottom:16px;left:12px;right:12px;font-size:11px;color:#f59e0b;background:#2a2010;padding:8px;border-radius:8px}
main{flex:1;padding:24px 28px}
.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
h1{font-size:22px;font-weight:700}h3{font-size:13px;color:#8b95a7;font-weight:600;margin-bottom:12px}
.card{background:#151b26;border:1px solid #1e2533;border-radius:12px;padding:18px}
.grid{display:grid;gap:16px}.g2{grid-template-columns:2fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.g11{grid-template-columns:1fr 1fr}
.big{font-size:32px;font-weight:700}.up{color:#22c55e}.dn{color:#ef4444}.mut{color:#8b95a7}
table{width:100%;border-collapse:collapse}th{text-align:left;color:#6b7588;font-weight:500;font-size:11px;padding:8px;border-bottom:1px solid #1e2533}
td{padding:10px 8px;border-bottom:1px solid #1a2030}tr:hover td{background:#18202d}
.btn{background:#3b82f6;color:#fff;border:0;border-radius:8px;padding:9px 16px;font-weight:600;cursor:pointer}
.btn.g{background:#22c55e}.btn.r{background:#ef4444}.btn.o{background:transparent;border:1px solid #2a3344;color:#cdd3de}
.pill{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11px;background:#1d2a3f;color:#93c5fd}
.pill.g{background:#12301f;color:#4ade80}.pill.r{background:#3a1515;color:#f87171}.pill.y{background:#2a2010;color:#fbbf24}
.tabs{display:flex;gap:4px;background:#11161f;border-radius:8px;padding:4px;width:fit-content;margin-bottom:16px}
.tabs span{padding:7px 14px;border-radius:6px;color:#8b95a7;cursor:pointer}.tabs span.on{background:#1d2a3f;color:#fff}
label{display:block;color:#8b95a7;font-size:11px;margin:12px 0 5px}
input,select{width:100%;background:#0d1117;border:1px solid #2a3344;color:#e6e9ef;border-radius:8px;padding:9px 10px;font-size:13px}
.row{display:flex;gap:10px;align-items:center}.row>*{flex:1}
.sw{display:inline-block;width:34px;height:18px;background:#22c55e;border-radius:10px;position:relative;flex:none}.sw:after{content:"";position:absolute;right:2px;top:2px;width:14px;height:14px;background:#fff;border-radius:50%}
.sw.off{background:#2a3344}.sw.off:after{right:auto;left:2px}
.bar{height:6px;background:#1e2533;border-radius:4px;overflow:hidden}.bar i{display:block;height:100%}
.coin{display:inline-flex;width:22px;height:22px;border-radius:50%;align-items:center;justify-content:center;font-size:10px;font-weight:700;margin-right:8px;vertical-align:middle}
.tp{background:#0d1117;border:1px solid #1e2533;border-radius:8px;padding:10px;margin-top:8px}
.sec{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #1e2533;font-weight:600}
table.dense th{font-size:10.5px;padding:5px 6px;text-transform:uppercase;letter-spacing:.03em}
table.dense td{font-size:12px;padding:0 6px;height:26px;white-space:nowrap}
table.dense tr:hover td{background:#1b2331}
table.dense .r{text-align:right}
.ci{display:inline-flex;width:16px;height:16px;border-radius:50%;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;margin-right:7px;vertical-align:-3px}
.ab{display:inline-block;width:60px;height:5px;background:#232b3a;border-radius:3px;margin-right:6px;vertical-align:middle;overflow:hidden}.ab i{display:block;height:100%}
.ovl{position:fixed;inset:0;background:rgba(5,8,14,.72);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}
.modal{background:#151b26;border:1px solid #2a3344;border-radius:14px;width:560px;max-width:100%;max-height:92vh;overflow:auto;padding:22px}
.modal h2{font-size:18px;margin-bottom:4px}.x{float:right;cursor:pointer;color:#8b95a7;font-size:18px}
.pick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.pick div{border:1px solid #2a3344;border-radius:10px;padding:12px;text-align:center;cursor:pointer;font-weight:600}
.pick div:hover{border-color:#3b82f6}.pick div.on{border-color:#3b82f6;background:#1d2a3f}.pick small{display:block;color:#6b7588;font-weight:400;font-size:10.5px;margin-top:3px}
.note{border-radius:8px;padding:10px 12px;font-size:12px;margin-top:12px;line-height:1.5}.note.b{background:#13223a;color:#93c5fd}.note.y{background:#2a2010;color:#fbbf24}.note.r{background:#3a1515;color:#fca5a5}
.steps{display:flex;gap:6px;margin:12px 0 4px}.steps i{flex:1;height:3px;border-radius:2px;background:#2a3344}.steps i.on{background:#3b82f6}
.chk{display:flex;gap:8px;align-items:center;margin-top:8px;color:#cdd3de}.chk b{width:16px;height:16px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.prog{position:relative;height:8px;background:linear-gradient(90deg,#3a1515,#1e2533 30%,#12301f);border-radius:4px;min-width:180px}.prog .m{position:absolute;top:-3px;width:2px;height:14px;background:#4b5567}.prog .now{position:absolute;top:-4px;width:12px;height:16px;margin-left:-6px;border-radius:3px;background:#f7931a;border:2px solid #0d1117}
.prog .lb{position:absolute;top:12px;font-size:9.5px;color:#6b7588;transform:translateX(-50%)}
tr.click{cursor:pointer}.back{color:#8b95a7;cursor:pointer;margin-bottom:8px;display:inline-block}
.burger{display:none}
@media(max-width:900px){body{display:block}.side{position:fixed;left:-240px;z-index:40;transition:left .2s;box-shadow:0 0 30px #000}.side.open{left:0}
.burger{display:flex;position:sticky;top:0;z-index:30;background:#11161f;border-bottom:1px solid #1e2533;padding:12px 16px;align-items:center;gap:12px;font-weight:800;font-size:16px}.burger button{background:none;border:1px solid #2a3344;color:#fff;border-radius:6px;padding:4px 9px;font-size:16px}.burger span{color:#22c55e}
main{padding:16px}.g2,.g3,.g4,.g11{grid-template-columns:1fr!important}.g4{grid-template-columns:1fr 1fr!important}.big{font-size:24px}.top{flex-wrap:wrap;gap:10px}
.card{overflow-x:auto}.pick{grid-template-columns:repeat(2,1fr)}.row{flex-wrap:wrap}.row>*{min-width:120px}}
.btn{white-space:nowrap}.pill{white-space:nowrap}

table.assets-tbl{table-layout:fixed;min-width:100%}
table.assets-tbl th{position:relative;overflow:hidden;text-overflow:ellipsis}
table.assets-tbl th .rz{position:absolute;right:-2px;top:0;bottom:0;width:6px;cursor:col-resize;z-index:2}
table.assets-tbl th .rz:hover,table.assets-tbl th .rz.on{background:rgba(59,130,246,.55)}
table.assets-tbl td{height:52px;font-size:13px;padding:8px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
table.assets-tbl .coin-cell{font-size:15px}
table.assets-tbl .coin-cell .ci{width:32px;height:32px;font-size:14px;margin-right:10px;vertical-align:middle;flex:none}
table.assets-tbl .coin-cell .cn{display:inline-flex;flex-direction:column;vertical-align:middle;line-height:1.2}
table.assets-tbl .coin-cell .cn b{font-size:15px;font-weight:700}
table.assets-tbl .coin-cell .cn .mut{font-size:12px}
table.assets-tbl .ab{width:70px;height:6px}

/* Grid Bots two-column layout: left = my bots + create, right = tall chart */
.grid-bots{display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,1.35fr);gap:16px;align-items:start}
.grid-bots .gb-left{display:flex;flex-direction:column;gap:16px;min-width:0}
.grid-bots .gb-chart{position:sticky;top:16px;min-height:920px;display:flex;flex-direction:column;padding-bottom:12px}
.grid-bots .gb-svg{width:100%;flex:1;min-height:860px;height:860px;display:block;margin-top:4px}
@media(max-width:1100px){.grid-bots{grid-template-columns:1fr}.grid-bots .gb-chart{position:static;min-height:720px;order:-1}.grid-bots .gb-svg{min-height:640px;height:640px}.grid-bots .gb-left{order:1}}
