:root {
  --bg: #0b0e14;
  --panel: #131823;
  --panel-2: #1a2130;
  --line: #242c3d;
  --text: #e8ebf2;
  --muted: #8790a6;
  --faint: #5a6378;
  --accent: #5b8cff;
  --win: #4c7dff;
  --win-bg: rgba(76, 125, 255, .10);
  --loss: #ff4f6d;
  --loss-bg: rgba(255, 79, 109, .09);
  --gold: #f0b54a;
  --good: #3ccf91;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 14, 20, .86);
       backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 60px;
             display: flex; align-items: center; gap: 20px; }
.logo { font-weight: 800; letter-spacing: .5px; font-size: 17px; white-space: nowrap; }
.logo span { color: var(--accent); margin-left: 2px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px;
       color: var(--muted); font-weight: 600; white-space: nowrap; transition: .15s; }
.tab:hover { color: var(--text); background: var(--panel); }
.tab.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.tab img { width: 22px; height: 22px; border-radius: 50%; }
.tab .sep { width: 1px; height: 20px; background: var(--line); }

.mode { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.mode-label { font-weight: 600; color: var(--muted); font-size: 13px; }
.mode input { display: none; }
.switch { width: 42px; height: 24px; border-radius: 99px; background: var(--panel-2);
          border: 1px solid var(--line); position: relative; transition: .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
                 border-radius: 50%; background: var(--muted); transition: .2s; }
.mode input:checked + .switch { background: linear-gradient(90deg, #ff7ac6, #ffb347); border-color: transparent; }
.mode input:checked + .switch::after { left: 21px; background: #fff; }
body.fun .mode-label { color: #ff9fd5; }
@media (max-width: 600px) {
  .top-inner { gap: 10px; }
  .logo span, .mode-label { display: none; }
  .hero h1 { font-size: 22px; }
}

/* ---------- layout ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 24px 16px 60px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 16px 30px; color: var(--faint); font-size: 12px; }
.cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.grid-2 > * { min-width: 0; }
@media (max-width: 960px) { .cols, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px;
           color: var(--muted); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.hero .icon { position: relative; }
.hero .icon img { width: 80px; height: 80px; border-radius: 18px; border: 2px solid var(--line); }
.hero .lvl { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--panel-2);
             border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.hero h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.hero h1 span { color: var(--faint); font-weight: 600; }
.hero .sub { color: var(--muted); margin-top: 2px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 6px 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line);
        color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; transition: .15s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- rank ---------- */
.rank { display: flex; align-items: center; gap: 14px; }
.rank + .rank { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rank img { width: 64px; height: 64px; }
.rank .q { font-size: 12px; color: var(--muted); font-weight: 600; }
.rank .t { font-size: 18px; font-weight: 800; text-transform: capitalize; }
.rank .lp { color: var(--muted); font-weight: 600; }
.rank .wl { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); }
.rank .wl b { display: block; font-size: 15px; color: var(--text); }

/* ---------- stats ---------- */
.stat { background: var(--panel-2); border-radius: 10px; padding: 12px; }
.stat .v { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pos { color: var(--good); } .neg { color: var(--loss); }
.wr-hi { color: var(--gold); } .wr-good { color: var(--accent); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.form { display: flex; gap: 4px; flex-wrap: wrap; }
.form i { width: 18px; height: 18px; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 800;
          display: grid; place-items: center; color: #fff; }
.form .w { background: var(--win); } .form .l { background: var(--loss); }

.bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 99px; }
.wrbar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 700; min-width: 90px; }
.wrbar .w { background: var(--win); padding: 0 6px; display: flex; align-items: center; }
.wrbar .l { background: var(--loss); padding: 0 6px; display: flex; align-items: center; justify-content: flex-end; }
.wrbar .w:empty, .wrbar .l:empty { padding: 0; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--faint); font-weight: 600; font-size: 11px; text-transform: uppercase;
          letter-spacing: .4px; padding: 8px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.tbl th.sorted { color: var(--text); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid rgba(36, 44, 61, .6); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.more { margin-top: 10px; width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
        border-radius: 8px; padding: 7px; font: inherit; font-weight: 600; font-size: 12px; cursor: pointer; }
.more:hover { color: var(--text); }
.champ { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.champ img { width: 28px; height: 28px; border-radius: 7px; }
.champ .pair { display: flex; }
.champ .pair img + img { margin-left: -6px; border: 2px solid var(--panel); }

/* ---------- match list ---------- */
.matches { display: grid; gap: 8px; }
.m { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.m-row { display: grid; grid-template-columns: 6px 86px 126px 170px 108px minmax(0, 1fr) 16px; gap: 10px; align-items: center;
         padding: 10px 10px 10px 0; cursor: pointer; transition: background .15s; }
.m-row.bot-row { grid-template-columns: 6px 86px minmax(0, 1fr) 74px minmax(0, 1fr) 190px 16px; }
.m.win .m-row { background: var(--win-bg); } .m.loss .m-row { background: var(--loss-bg); }
.m-row:hover { filter: brightness(1.12); }
.m .strip { align-self: stretch; }
.m.win .strip { background: var(--win); } .m.loss .strip { background: var(--loss); }
.m .meta b { display: block; font-size: 12px; }
.m.win .meta b { color: var(--win); } .m.loss .meta b { color: var(--loss); }
.m .meta div { font-size: 12px; color: var(--muted); }
.m .who { display: flex; gap: 6px; align-items: center; }
.m .who .ci { position: relative; }
.m .who .ci img { width: 48px; height: 48px; border-radius: 12px; }
.m .who .ci span { position: absolute; bottom: -4px; right: -4px; background: #000; border-radius: 6px;
                   font-size: 10px; padding: 0 4px; font-weight: 700; }
.m .sp { display: grid; gap: 2px; }
.m .sp img { width: 22px; height: 22px; border-radius: 5px; background: #000; }
.m .kda b { font-size: 16px; letter-spacing: .3px; }
.m .kda .d { color: var(--loss); }
.m .kda div { font-size: 12px; color: var(--muted); }
.items { display: flex; gap: 2px; flex-wrap: wrap; }
.items img, .items .no { width: 24px; height: 24px; border-radius: 5px; background: rgba(0, 0, 0, .35); }
.m .ten { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 10px; font-size: 11px; color: var(--muted); }
.m .ten div { display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 105px; }
.m .ten img { width: 15px; height: 15px; border-radius: 3px; flex: none; }
.m .ten .us { color: var(--text); font-weight: 700; }
.m .chev { color: var(--muted); transition: .2s; text-align: center; }
.m.open .chev { transform: rotate(180deg); }
.lines { display: grid; gap: 6px; }
.line { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.line img { width: 26px; height: 26px; border-radius: 6px; }

.score { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.score .s { padding: 2px 7px; border-radius: 6px; background: var(--panel-2); font-size: 12px; }
.score .s.top { background: var(--gold); color: #1b1300; }
.score .s.hi { background: var(--accent); color: #fff; }
.badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 5px; letter-spacing: .5px; }
.badge.MVP { background: var(--gold); color: #1b1300; }
.badge.ACE { background: #a177ff; color: #fff; }

.m .ten { max-width: 230px; }
.m .items-wrap .items { max-width: 104px; }

/* average ranks, rank chips */
.avgr { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.rchip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; }
.rchip img { width: 16px; height: 16px; }

/* bot lane rows */
.duo { display: grid; gap: 4px; min-width: 0; }
.bl { display: grid; grid-template-columns: 28px minmax(0, 1fr) 76px; align-items: center; gap: 6px; min-width: 0; font-size: 12px; }
.bl .score { justify-content: center; }
.bl img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.grade { cursor: help; }
.tip { position: fixed; z-index: 100; display: none; width: 320px; background: #0f1420; border: 1px solid #33405a;
       border-radius: 10px; padding: 12px; font-size: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); pointer-events: none; }
.tip.show { display: block; }
.tip-h { font-weight: 600; margin-bottom: 6px; }
.tip-s { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.tip table { width: 100%; border-collapse: collapse; }
.tip th { color: var(--faint); font-weight: 600; font-size: 11px; text-align: left; padding: 2px 4px; }
.tip td { padding: 3px 4px; border-top: 1px solid var(--line); }
.tip .num { text-align: right; font-variant-numeric: tabular-nums; }
.bl-n { min-width: 0; flex: 1; }
.bl-n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.bl-n span { color: var(--muted); font-size: 11px; }
.bl.mine .bl-n b { color: var(--text); }
.bl:not(.mine) .bl-n b { color: var(--muted); font-weight: 600; }
.grade { display: grid; justify-items: center; gap: 1px; text-align: center; font-size: 10px; color: var(--muted); }
.grade b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.grade.g-s b { color: var(--gold); } .grade.g-a b { color: var(--good); } .grade.g-b b { color: var(--accent); } .grade.g-low b { color: var(--loss); }
.binfo { display: grid; gap: 6px; font-size: 11px; }
.binfo > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.binfo .faint:first-child { width: 100%; text-transform: uppercase; letter-spacing: .4px; font-size: 10px; }

@media (max-width: 1240px) {
  .m-row { grid-template-columns: 6px 86px 126px 170px 108px 16px; }
  .m .ten { display: none; }
  .m-row.bot-row { grid-template-columns: 6px 86px minmax(0, 1fr) 70px minmax(0, 1fr) 16px; }
  .m .binfo { display: none; }
}
@media (max-width: 720px) {
  .m-row, .m-row.bot-row { grid-template-columns: 6px 1fr 1fr 16px; row-gap: 8px; }
  .m .meta { grid-column: 2 / 4; display: flex; gap: 10px; }
  .m .items-wrap { grid-column: 2 / 4; }
  .m .score-wrap { display: none; }
  .m .grade { grid-column: 2 / 4; }
}

/* compact lists in the side column */
.mlist { display: grid; gap: 2px; }
.mi { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; }
.mi:hover { background: var(--panel-2); }
.mi.hide { display: none; }
.mlist.all .mi.hide { display: flex; }
.mi-i { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.mi .pair { display: flex; flex: none; }
.mi .pair img + img { margin-left: -10px; border: 2px solid var(--panel); }
.mi-n { flex: 1; min-width: 0; }
.mi-n b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-n span { font-size: 11px; color: var(--muted); }
.mi-r { text-align: right; flex: none; }
.mi-r b { display: block; font-size: 13px; }
.mi-r span { font-size: 11px; color: var(--muted); }
.type-dot { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent);
            color: var(--c); font-weight: 800; border: 1px solid var(--c); }

/* collapsible cards */
.coll-h { cursor: pointer; margin: 0 !important; user-select: none; }
.coll-h .hint { margin-left: auto; margin-right: 10px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); font-size: 12px; }
.coll .chev { transition: .2s; }
.coll .coll-b { margin-top: 12px; }
.coll.closed .coll-b { display: none; }
.coll.closed .chev { transform: rotate(-90deg); }

/* build order */
.bbtn { margin-left: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 6px;
        font: inherit; font-size: 11px; font-weight: 700; padding: 3px 8px; cursor: pointer; }
.bbtn:hover, .bbtn.on { color: #fff; border-color: var(--accent); background: var(--accent); }
.build-row td { background: var(--bg) !important; padding: 12px; }
.build-h { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); font-weight: 700; margin: 4px 0 8px; }
.bsteps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; white-space: normal; }
.bstep { display: grid; justify-items: center; gap: 2px; font-size: 10px; color: var(--muted); }
.barrow { color: var(--faint); font-size: 16px; }
.skills { display: flex; gap: 3px; flex-wrap: wrap; }
.sk { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--panel-2); }
.sk1 { color: #5b8cff; } .sk2 { color: #3ccf91; } .sk3 { color: #f0b54a; } .sk4 { background: #ff4f6d; color: #fff; }

/* match detail */
.detail { background: var(--panel); padding: 12px 14px 16px; border-top: 1px solid var(--line); animation: fade .2s ease; }
.detail .team-h { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 4px; font-weight: 700; }
.detail .team-h.win { color: var(--win); } .detail .team-h.loss { color: var(--loss); }
.detail .obj { display: flex; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
.detail .me td { background: rgba(91, 140, 255, .08); }
.pl { display: flex; align-items: center; gap: 8px; }
.pl .ci img { width: 32px; height: 32px; border-radius: 8px; }
.pl .sp { display: grid; gap: 1px; grid-template-columns: 15px 15px; }
.pl .sp img { width: 15px; height: 15px; border-radius: 3px; }
.pl .nm { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.pl .nm small { display: block; color: var(--muted); font-size: 11px; }
.detail .tbl td { padding: 6px 5px; }
/* Fit the 10-player table in the match column: no horizontal scroll bar. */
.detail .scroll { overflow-x: visible; }
.detail .tbl { table-layout: auto; width: 100%; }
.detail .tbl th { padding: 6px 5px; }
.detail .items { display: grid; grid-template-columns: repeat(4, 22px); gap: 2px; }
.detail .items img, .detail .items .no { width: 22px; height: 22px; }
.detail .items .bbtn { grid-column: 1 / -1; margin: 2px 0 0; padding: 2px 0; }
.detail .pl .nm { max-width: 120px; }
.detail .dmg { min-width: 80px; }
.detail .bsteps { max-width: 100%; }
@media (max-width: 1100px) {
  .detail .tbl th:nth-child(5), .detail .tbl td:nth-child(5),
  .detail .tbl th:nth-child(6), .detail .tbl td:nth-child(6) { display: none; }
  .detail .pl .nm { max-width: 100px; }
}
@media (max-width: 720px) {
  .detail .tbl th:nth-child(4), .detail .tbl td:nth-child(4) { display: none; }
  .detail .pl .sp { display: none; }
}
.detail .build-row td { display: table-cell !important; }
.detail .rk { margin-top: 2px; font-size: 11px; }
.detail .rk img { width: 14px; height: 14px; }
.build-row td { white-space: normal; }
.rk { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.rk img { width: 20px; height: 20px; }
.dmg { display: grid; gap: 3px; min-width: 90px; }
.dmg .bar > div { background: var(--loss); }

/* ---------- botlane / cheat sheet ---------- */
.duo-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.duo-head .pics { display: flex; }
.duo-head .pics img { width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--bg); }
.duo-head .pics img + img { margin-left: -16px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.rps { background: linear-gradient(120deg, rgba(91, 140, 255, .14), rgba(255, 122, 198, .10)); }
.arch { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.arch .card { border-top: 3px solid var(--c); }
.arch h4 { margin: 0 0 6px; color: var(--c); }
.arch p { margin: 0; color: var(--muted); font-size: 13px; }
.search { width: 100%; max-width: 280px; background: var(--panel-2); border: 1px solid var(--line);
          border-radius: 9px; color: var(--text); padding: 8px 12px; font: inherit; outline: none; }
.search:focus { border-color: var(--accent); }
.adcs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.adc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: .15s; }
.adc:hover { border-color: #33405a; transform: translateY(-1px); }
.adc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.adc-h img { width: 44px; height: 44px; border-radius: 11px; }
.adc-h b { font-size: 16px; }
.adc p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.sups { display: flex; gap: 8px; flex-wrap: wrap; }
.sup { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 50px; font-size: 10px; color: var(--muted); text-align: center; }
.sup img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--c, var(--line)); }
.sup .rec { font-weight: 700; color: var(--text); }
.skel { background: linear-gradient(90deg, var(--panel) 0, var(--panel-2) 50%, var(--panel) 100%);
        background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }
/* challenges */
h2.sec { font-size: 16px; margin: 26px 0 12px; }
.goal-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.goal-i { width: 48px; height: 48px; }
.goal-t { font-weight: 800; font-size: 16px; }
.goal-v { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.goal-v b { font-size: 26px; }
.bar.big { height: 10px; margin-bottom: 8px; }
.supgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.supm { display: grid; justify-items: center; gap: 3px; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--panel-2); }
.supm b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supm .bar { width: 80%; height: 4px; }
.supm .tiny { font-size: 10px; color: var(--muted); line-height: 1.2; }
.supm-i { position: relative; }
.supm-i img { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--c, var(--line)); }
.lvl-b { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--c, #2a3350); color: #111;
         border-radius: 99px; font-size: 10px; font-weight: 800; padding: 0 6px; }
.supm.lv10 { --c: var(--gold); } .supm.lv7 { --c: var(--accent); } .supm.lv { --c: #3a4560; }
.supm.lv .lvl-b, .supm.lv0 .lvl-b, .supm.lv7 .lvl-b { color: #fff; }
.supm.lv0 { opacity: .45; }
.chlist { display: grid; gap: 4px; }
.ch { display: grid; grid-template-columns: 36px minmax(0, 1fr) 240px; gap: 12px; align-items: center; padding: 6px 4px; border-radius: 8px; }
.ch:hover { background: var(--panel-2); }
.ch-i { width: 36px; height: 36px; }
.ch-n b { font-size: 13px; }
.ch-n span:last-child { display: block; font-size: 12px; color: var(--muted); }
.ch-p span { font-size: 11px; color: var(--muted); }
.ch-p .bar { margin-bottom: 3px; }
@media (max-width: 720px) { .ch { grid-template-columns: 36px 1fr; } .ch-p { grid-column: 2; } }
.foot a { color: var(--muted); text-decoration: underline; }
.modal-bg { position: fixed; inset: 0; z-index: 200; background: rgba(5, 7, 12, .72); backdrop-filter: blur(4px);
            display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
         padding: 22px; display: grid; gap: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.modal h2 { margin: 0; font-size: 20px; }
.modal p { margin: 0; font-size: 13px; }
.modal a { color: var(--accent); }
.modal label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.modal input { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--text);
               padding: 10px 12px; font: inherit; font-size: 13px; outline: none; }
.modal input:focus { border-color: var(--accent); }
.modal-err { color: var(--loss); font-size: 13px; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.btn, .btn-ghost { border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; border: 1px solid transparent; }
.btn { background: var(--accent); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.chart-box { position: relative; height: 220px; }
