:root {
  --bg: #0b0d0b; --paper: #121511; --paper2: #171b16; --ink: #e8eae3; --line: #262b24; --line2: #343a31; --muted: #858b80; --soft: #1d221b;
  --root: #3ddc84; --root-dim: rgba(61, 220, 132, .12); --root-bg: #1a2a20; --accent: #6c9bff; --pink: #ff5c93; --up: #3ddc84; --down: #ff5a5a;
  --d1: #13261b; --d2: #2a2213; --d3: #2b1620; --d4: #161e35; --d5: #1d1f1c;
  --d1i: #3ddc84; --d2i: #f2a93b; --d3i: #ff5c93; --d4i: #6c9bff; --d5i: #b8bcb3;
  --head: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 13px/1.55 "JetBrains Mono", ui-monospace, monospace; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(61,220,132,.05) 1px, transparent 1px); background-size: 22px 22px; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--root); color: #08130c; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line2); } ::-webkit-scrollbar-track { background: transparent; }
.mono-vt { font-family: var(--head); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 26px; padding: 0 18px; height: 58px; border-bottom: 1px solid var(--line); background: rgba(11,13,11,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: 3px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; }
.nav a { text-decoration: none; padding: 6px 10px; color: var(--muted); border: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-color: var(--line2); }
.nav a.on { color: var(--root); border-color: rgba(61,220,132,.35); background: var(--root-dim); }
.nav i { display: none; }
.top .spacer { flex: 1; }
.ca { display: flex; align-items: stretch; border: 1px solid var(--line2); background: var(--paper); font-size: 10.5px; height: 32px; }
.ca b { color: var(--root); padding: 0 10px; display: flex; align-items: center; border-right: 1px solid var(--line2); letter-spacing: 1px; }
.ca code { padding: 0 10px; display: flex; align-items: center; letter-spacing: .3px; }
.ca button { border: 0; border-left: 1px solid var(--line2); background: transparent; padding: 0 10px; cursor: pointer; font-weight: 700; letter-spacing: 1px; font-size: 10px; color: var(--muted); }
.ca button:hover { color: var(--root); }
.ca.soon code { color: var(--muted); }
.btn { border: 1px solid var(--line2); background: var(--paper2); padding: 0 14px; height: 32px; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; cursor: pointer; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; color: var(--ink); transition: background .12s, border-color .12s, color .12s; }
.btn:hover:not(:disabled) { border-color: var(--root); color: var(--root); }
.btn.dark { background: var(--root); border-color: var(--root); color: #07120b; }
.btn.dark:hover:not(:disabled) { background: #5cf09e; border-color: #5cf09e; color: #07120b; }
.btn.green { background: var(--root); border-color: var(--root); color: #07120b; box-shadow: 0 0 22px rgba(61,220,132,.25); }
.btn.green:hover:not(:disabled) { background: #5cf09e; color: #07120b; }
.btn.big { height: 46px; font-size: 13px; padding: 0 22px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.block { width: 100%; justify-content: center; }

/* ---------- chain rail (depth strip) ---------- */
.tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--paper); overflow-x: auto; }
.tabs .t { position: relative; display: flex; align-items: center; gap: 6px; padding: 9px 26px 9px 14px; font-size: 11px; white-space: nowrap; color: var(--muted); text-decoration: none; }
.tabs .t::after { content: "→"; position: absolute; right: 7px; color: var(--line2); }
.tabs .t.l5::after { content: ""; }
.tabs .t::before { content: ""; width: 7px; height: 7px; flex: none; }
.tabs .t.r { color: var(--root); font-weight: 700; } .tabs .t.r::before { display: none; }
.tabs .t.l1::before { background: var(--d1i); } .tabs .t.l2::before { background: var(--d2i); } .tabs .t.l3::before { background: var(--d3i); }
.tabs .t.l4::before { background: var(--d4i); } .tabs .t.l5::before { background: var(--d5i); }
.tabs .t:hover { color: var(--ink); }
.tabs .fill { flex: 1; }
.tabs .kpi { display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 10.5px; border-left: 1px solid var(--line); white-space: nowrap; }
.tabs .kpi b { font-size: 14px; font-family: var(--head); }
.tabs .kpi:first-of-type b { color: var(--root); }
.flag { display: inline-block; width: 9px; height: 11px; position: relative; vertical-align: -1px; }
.flag::before { content: ""; position: absolute; left: 0; top: 0; width: 1.5px; height: 11px; background: currentColor; }
.flag::after { content: ""; position: absolute; left: 1.5px; top: 0; width: 7px; height: 6px; background: currentColor; clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%); }

/* ---------- intro bar ---------- */
.intro { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; display: flex; flex-direction: column; gap: 6px; color: #c9ccc3; }
.intro b { color: var(--root); }
.intro .now { font-size: 11px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.intro .now b { letter-spacing: 1.5px; color: var(--ink); border: 1px solid var(--line2); padding: 0 6px; }
.intro .now .hl { color: var(--root); font-weight: 600; }
.intro .now a { text-decoration: none; color: var(--root); }

/* ---------- layout ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; min-height: calc(100vh - 170px); }
.grid > .main { border-right: 1px solid var(--line); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h2 { margin: 0; font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; display: flex; align-items: center; gap: 8px; }
.panel-h h2::before { content: "//"; color: var(--root); font-weight: 400; }
.panel-h .sub { color: var(--muted); font-size: 11px; }
.panel-h .right { margin-left: auto; color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.seg { display: inline-flex; border: 1px solid var(--line2); }
.seg button { border: 0; background: transparent; padding: 3px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--root-dim); color: var(--root); }
.box { background: var(--paper); border: 1px solid var(--line2); }
.label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); }
.hidden { display: none !important; }

/* ---------- chart ---------- */
.chart-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 180px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chart { position: relative; height: 380px; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart .empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--muted); text-align: center; padding: 20px; }
.legend { border-left: 1px solid var(--line); overflow-y: auto; max-height: 380px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.legend a { display: grid; grid-template-columns: 3px 22px minmax(0, 1fr); align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--paper2); padding: 4px 6px 4px 0; text-decoration: none; font-size: 10px; }
.legend a:hover { border-color: var(--line2); }
.legend a .sw { width: 3px; height: 100%; }
.legend a img { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; }
.legend a b { font-size: 12.5px; display: block; line-height: 1.1; }
.legend a span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tip { position: absolute; pointer-events: none; background: var(--paper2); border: 1px solid var(--line2); padding: 7px 9px; font-size: 10.5px; z-index: 5; min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

/* ---------- podium cards ---------- */
.podium { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.podium .c { padding: 12px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); position: relative; min-width: 0; transition: border-color .15s, transform .15s; }
.podium .c:hover { border-color: var(--line2); transform: translateY(-2px); }
.podium .c .n { position: absolute; top: 8px; left: 10px; font-size: 10px; color: var(--muted); font-family: var(--head); }
.podium .c .who { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 8px; }
.podium .c img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line2); }
.podium .c .sym { font-weight: 700; font-size: 11px; letter-spacing: .5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .c .mc { text-align: center; font-size: 19px; font-weight: 700; color: var(--root); font-family: var(--head); }
.podium .c .tier { text-align: center; font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.podium .c .meta { text-align: center; font-size: 10px; color: var(--muted); }
.podium .c.blank { color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 11px; min-height: 146px; text-align: center; border-style: dashed; }
.c.b1 { border-top: 2px solid var(--d1i); } .c.b2 { border-top: 2px solid var(--d2i); } .c.b3 { border-top: 2px solid var(--d3i); } .c.b4 { border-top: 2px solid var(--d4i); } .c.b5 { border-top: 2px solid var(--d5i); }

/* ---------- side ---------- */
.side { display: flex; flex-direction: column; min-width: 0; background: rgba(18,21,17,.6); }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.side-tabs button { border: 0; background: transparent; padding: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.side-tabs button + button { border-left: 1px solid var(--line); }
.side-tabs button.on { color: var(--root); border-bottom-color: var(--root); }
.feed { display: flex; flex-direction: column; overflow-y: auto; max-height: calc(100vh - 220px); }
.feed .head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 10.5px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--root); font-weight: 700; letter-spacing: 1px; font-size: 10px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--root); box-shadow: 0 0 8px var(--root); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.item { margin: 10px 12px 0; border: 1px solid var(--line); background: var(--paper); position: relative; }
.item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--muted); }
.item:hover { border-color: var(--line2); }
.item:last-child { margin-bottom: 12px; }
.item .ih { display: flex; align-items: center; gap: 6px; padding: 7px 10px 6px 12px; font-size: 10.5px; border-bottom: 1px solid var(--line); }
.item .ih .tag { margin-left: auto; padding: 1px 7px; font-weight: 700; font-size: 10px; letter-spacing: 1px; }
.item .ih .tag.buy { background: rgba(61,220,132,.14); color: var(--up); }
.item .ih .tag.sell { background: rgba(255,90,90,.14); color: var(--down); }
.item .ib { padding: 8px 10px 9px 12px; font-size: 11.5px; color: #c9ccc3; }
.item .ib b { color: var(--ink); }
.item .ib .route { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; font-size: 9.5px; color: var(--muted); }
.item .ib .route span { padding: 0 5px; background: var(--paper2); border: 1px solid var(--line); color: #c9ccc3; }
.item .ib .ft { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 6px; }
.item.l0::before { background: var(--pink); } .item.l1::before { background: var(--d1i); } .item.l2::before { background: var(--d2i); }
.item.l3::before { background: var(--d3i); } .item.l4::before { background: var(--d4i); } .item.l5::before { background: var(--ink); } .item.lx::before { background: var(--muted); }
.r0 { background: var(--root-bg); } .r1 { background: var(--d1); } .r2 { background: var(--d2); } .r3 { background: var(--d3); } .r4 { background: var(--d4); } .r5 { background: var(--d5); }
.feed-empty { padding: 28px 16px; color: var(--muted); text-align: center; font-size: 12px; }

/* stats list */
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stats div { padding: 13px 15px; border-bottom: 1px solid var(--line); }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats b { display: block; font-size: 18px; margin-top: 2px; font-family: var(--head); }
.bar { height: 6px; background: var(--soft); position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--root); box-shadow: 0 0 8px rgba(61,220,132,.5); }

/* ---------- trade box ---------- */
.trade { padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.trade .sides { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line2); }
.trade .sides button { border: 0; padding: 9px; font-weight: 700; letter-spacing: 1.5px; cursor: pointer; background: transparent; color: var(--muted); }
.trade .sides button + button { border-left: 1px solid var(--line2); }
.trade .sides button.on.buy { background: rgba(61,220,132,.14); color: var(--up); }
.trade .sides button.on.sell { background: rgba(255,90,90,.14); color: var(--down); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea { border: 1px solid var(--line2); background: var(--bg); padding: 10px 11px; outline: none; width: 100%; font-size: 13px; color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--root); box-shadow: 0 0 0 3px var(--root-dim); }
.field input:disabled { color: var(--muted); }
.field textarea { resize: vertical; min-height: 74px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line2); background: var(--paper2); padding: 3px 9px; font-size: 11px; cursor: pointer; color: #c9ccc3; }
.quick button:hover { border-color: var(--root); color: var(--root); }
.note { font-size: 11px; color: var(--muted); }
.msg { border: 1px solid var(--line2); padding: 9px 11px; font-size: 12px; background: var(--paper2); }
.msg a { color: var(--root); }
.msg.err { border-color: rgba(255,90,90,.5); color: #ff8a8a; background: rgba(255,90,90,.06); }
.msg.ok { border-color: rgba(61,220,132,.5); color: var(--root); background: rgba(61,220,132,.06); }
.hops { display: flex; flex-wrap: wrap; gap: 4px; font-size: 10px; align-items: center; }
.hops span { border: 1px solid var(--line2); padding: 1px 6px; background: var(--paper2); }
.hops em { font-style: normal; color: var(--muted); }

/* ---------- pages ---------- */
.travel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 16px 18px; }
.travel .box { padding: 12px; border: 1px solid var(--line); position: relative; }
.travel .box b { font-family: var(--head); }
.travel .box:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--root); font-size: 12px; z-index: 2; }
.nav a { white-space: nowrap; }
.page { max-width: 1240px; margin: 0 auto; padding: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 430px; border-bottom: 1px solid var(--line); }
.cols > div:first-child { border-right: 1px solid var(--line); }
.pad { padding: 16px 18px; }
.form { display: flex; flex-direction: column; gap: 15px; padding: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.drop { border: 1px dashed var(--line2); background: var(--bg); height: 156px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; position: relative; overflow: hidden; color: var(--muted); font-size: 12px; }
.drop:hover { border-color: var(--root); color: var(--root); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg); }
.chainlist { border: 1px solid var(--line2); background: var(--paper); }
.chainlist .h { background: var(--paper2); color: var(--muted); padding: 9px 12px; display: flex; justify-content: space-between; font-weight: 700; letter-spacing: 1.5px; font-size: 10.5px; border-bottom: 1px solid var(--line2); }
.chainlist .r { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.04); font-size: 12px; }
.chainlist .r .d { font-weight: 700; font-family: var(--head); color: var(--muted); }
.chainlist .r.r0 .d { color: var(--root); } .chainlist .r.r1 .d { color: var(--d1i); } .chainlist .r.r2 .d { color: var(--d2i); } .chainlist .r.r3 .d { color: var(--d3i); } .chainlist .r.r4 .d { color: var(--d4i); } .chainlist .r.r5 .d { color: var(--ink); }
.chainlist .r .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chainlist .r .nm small { display: block; color: var(--muted); font-size: 10px; }
.chainlist .r .v { text-align: right; font-size: 11px; }
.chainlist .r .v small { display: block; color: var(--muted); font-size: 10px; }
.chainlist .r .mini { height: 3px; background: rgba(255,255,255,.08); margin-top: 4px; position: relative; }
.chainlist .r .mini i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--root); }
.copy { cursor: pointer; text-decoration: underline dotted; }
.steps { display: flex; flex-direction: column; gap: 7px; }
.steps div { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--muted); }
.steps div::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--line2); flex: none; }
.steps div.on { color: var(--ink); font-weight: 600; }
.steps div.on::before { background: #f2a93b; border-color: #f2a93b; animation: pulse 1s infinite; }
.steps div.done { color: var(--root); }
.steps div.done::before { background: var(--root); border-color: var(--root); }
.summary { border: 1px solid var(--line2); background: var(--paper); }
.summary div { display: flex; justify-content: space-between; padding: 8px 11px; border-bottom: 1px solid var(--line); font-size: 12px; }
.summary div:last-child { border-bottom: 0; }
.summary div b { font-size: 13px; }

table.lb { width: 100%; border-collapse: collapse; }
table.lb th { text-align: left; font-size: 10px; letter-spacing: 1.4px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line2); background: var(--paper); white-space: nowrap; }
table.lb td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
table.lb tr:hover td { background: rgba(61,220,132,.04); cursor: pointer; }
table.lb .coin { display: flex; align-items: center; gap: 10px; }
table.lb .coin img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line2); }
table.lb .coin b { display: block; }
table.lb .coin small { color: var(--muted); }
.lvls { display: inline-flex; gap: 3px; }
.lvls i { width: 13px; height: 13px; border: 1px solid var(--line2); display: inline-block; position: relative; }
.lvls i.done::after { content: ""; position: absolute; inset: 2px; background: var(--root); }
.coinhead { display: flex; gap: 18px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.coinhead img { width: 78px; height: 78px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line2); }
.coinhead h1 { margin: 0; font-family: var(--head); font-size: 22px; letter-spacing: .5px; }
.coinhead .links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.coinhead .links a { border: 1px solid var(--line2); padding: 2px 9px; font-size: 10.5px; text-decoration: none; font-weight: 600; letter-spacing: .8px; color: #c9ccc3; }
.coinhead .links a:hover { border-color: var(--root); color: var(--root); }
.coinhead .big { margin-left: auto; text-align: right; }
.coinhead .big b { font-size: 28px; color: var(--root); display: block; line-height: 1.1; font-family: var(--head); }
.doc { padding: 26px 18px 44px; max-width: 880px; }
.doc h2 { font-family: var(--head); font-size: 14px; letter-spacing: 1.5px; margin: 30px 0 10px; display: flex; align-items: center; gap: 8px; }
.doc h2::before { content: "//"; color: var(--root); font-weight: 400; }
.doc p, .doc li { font-size: 13px; line-height: 1.75; color: #c9ccc3; }
.doc b { color: var(--ink); }
.doc .callout { border: 1px solid rgba(61,220,132,.35); background: var(--root-dim); padding: 13px 15px; margin: 14px 0; color: var(--ink); }
.doc table { border-collapse: collapse; margin: 10px 0; }
.doc td, .doc th { border: 1px solid var(--line2); padding: 7px 11px; font-size: 12px; text-align: left; }
.notice { margin: 16px 18px; border: 1px solid rgba(242,169,59,.45); background: rgba(242,169,59,.07); padding: 14px 16px; font-size: 12.5px; color: #e9d3ad; }
.notice b { letter-spacing: 1px; color: #f2a93b; }
footer { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 12px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--root); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--root); color: #07120b; padding: 8px 14px; font-size: 12px; font-weight: 700; z-index: 50; }

@media (max-width: 1100px) {
  .grid, .cols { grid-template-columns: 1fr; }
  .grid > .main, .cols > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed { max-height: 600px; }
}
@media (max-width: 760px) {
  .top { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .top .spacer { display: none; }
  .chart-wrap { grid-template-columns: 1fr; }
  .legend { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; overflow-x: auto; max-height: none; }
  .legend a { min-width: 140px; }
  .podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2, .row3 { grid-template-columns: 1fr; }
  .travel { grid-template-columns: 1fr 1fr; }
  .travel .box::after { display: none; }
  .chart { height: 300px; }
  .ca code { display: none; }
}
