/* CyberMath — «Тэргүүлэгч» (#mx-lb) ба «Mathlet» (#mx-ml) табын шинэ цайвар загвар (C «Адал явдал»). cm-compete.js зурна.
   Зөвхөн html.cmx ба таб дээр .mx-on үед: эх харагдац (#lb-list, Mathlet-ийн толгой + #mathlet-hub-content) далд, өгөгдөл/функц нь хэвээр. */
#mx-lb, #mx-ml { display: none; }
html.cmx #tab-leaderboard.mx-on > :not(#mx-lb), html.cmx #tab-mathlet.mx-on > :not(#mx-ml) { display: none !important; }
html.cmx #tab-leaderboard.mx-on > #mx-lb, html.cmx #tab-mathlet.mx-on > #mx-ml { display: block; }

.mx { max-width: 1120px; margin: 0 auto; color: var(--cx-tx, #1E1A4D); font-family: 'Nunito', sans-serif; }
.mx * { box-sizing: border-box; }
.mx h2, .mx h3 { margin: 0; font-family: var(--cx-fd, 'Unbounded', sans-serif); font-weight: 700; letter-spacing: .1px; color: var(--cx-tx, #1E1A4D); }
.mx p { margin: 0; }
.mx button { font-family: inherit; }
.mx .mx-card { background: #fff; border: 1px solid var(--cx-line, rgba(30, 26, 77, .08)); border-radius: 24px; box-shadow: 0 22px 44px -34px rgba(30, 26, 77, .45); }
.mx .mx-eb { display: inline-flex; align-items: center; gap: 8px; color: #D99A00; font: 900 .74rem/1 'Nunito', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.mx .mx-eb i { width: 8px; height: 8px; border-radius: 50%; background: #FFC113; box-shadow: 0 0 0 4px rgba(255, 193, 19, .22), 0 0 12px #FFC113; }
.mx .mx-eb.live { color: #E5375B; }
.mx .mx-eb.live i { background: #FF4D6D; box-shadow: 0 0 0 4px rgba(255, 77, 109, .2); animation: mx-pulse 1.6s ease-in-out infinite; }
@keyframes mx-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 77, 109, 0); } }
.mx .mx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer;
  font: 900 1rem/1 'Nunito', sans-serif; white-space: nowrap; transition: transform .12s ease, filter .15s ease;
}
.mx .mx-btn svg { width: 18px; height: 18px; flex: none; }
.mx .mx-btn:active { transform: translateY(2px); }
.mx .mx-btn:hover { filter: brightness(1.04); }
.mx .mx-btn.gold { background: linear-gradient(180deg, #FFD84A, #FFB300); color: #3B2700; box-shadow: 0 5px 0 #C68600, 0 16px 30px -14px rgba(255, 179, 0, .8); }
.mx .mx-btn.vio { background: linear-gradient(180deg, #8D66FF, #6A42E6); color: #fff; box-shadow: 0 5px 0 #4B2BC7, 0 16px 30px -14px rgba(91, 59, 217, .7); }
.mx .mx-btn.ghost { background: #fff; color: var(--cx-tx, #1E1A4D); border: 1.5px solid #E1DBF4; box-shadow: 0 4px 0 #E1DBF4; }
.mx .mx-btn.sm { height: 42px; padding: 0 16px; font-size: .9rem; border-radius: 13px; }
.mx .mx-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.mx .mx-btn:focus-visible, .mx .mx-cls:focus-visible { outline: 3px solid var(--cx-vio, #7B52EE); outline-offset: 3px; }
.mx .you { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 7px; border-radius: 999px; background: var(--cx-vio, #7B52EE); color: #fff; font: 900 .66rem/1 'Nunito', sans-serif; font-style: normal; vertical-align: 2px; }
.mx .av { display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; border-radius: 50%; background: #F1ECFF; }
.mx .av svg, .mx .av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mx .av .in { font: 700 1.05rem/1 var(--cx-fd, 'Unbounded', sans-serif); color: var(--cx-vio, #7B52EE); }
.mx .sk { position: relative; overflow: hidden; background: #F4F1FC; border-color: transparent; box-shadow: none; }
.mx .sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: mx-sh 1.3s ease-in-out infinite; }
@keyframes mx-sh { to { transform: translateX(100%); } }
.mx .mx-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px; text-align: center; }
.mx .mx-empty .ic { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #F1ECFF; color: var(--cx-vio, #7B52EE); }
.mx .mx-empty .ic svg { width: 28px; height: 28px; }
.mx .mx-empty b { font-weight: 900; font-size: 1.05rem; }
.mx .mx-empty p { color: var(--cx-mut, #68628F); font-weight: 700; max-width: 380px; line-height: 1.5; }
.mx .mx-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 2px 14px; }
.mx .mx-sec-h h3 { font-size: 1.1rem; }
.mx .mx-sec-h small { color: var(--cx-mut2, #9C96BC); font-weight: 800; font-size: .86rem; }

/* ════════ Тэргүүлэгч ════════ */
#mx-lb .mx-hd { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: center; margin-bottom: 22px; }
#mx-lb .mx-hd .tx { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 2px; }
#mx-lb .mx-hd h2 { font-size: 2rem; }
#mx-lb .mx-hd p { color: var(--cx-mut, #68628F); font-weight: 700; line-height: 1.55; max-width: 540px; }
#mx-lb .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
#mx-lb .acts i { font-style: normal; }
#mx-lb .mx-me {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 16px; align-items: center; min-height: 168px; padding: 20px 22px;
  border-radius: 24px; color: #fff; background: radial-gradient(260px 160px at 100% 0, rgba(18, 198, 216, .35), transparent 70%), linear-gradient(135deg, #2A1F6E, #5B3BD9 62%, #7B52EE);
  box-shadow: 0 26px 44px -26px rgba(75, 43, 199, .8);
}
#mx-lb .mx-me.sk { background: #ECE7FB; box-shadow: none; }
#mx-lb .mx-me .av { grid-row: 1 / span 3; width: 66px; height: 66px; border: 3px solid #FFC113; box-shadow: 0 0 0 5px rgba(255, 193, 19, .18); }
#mx-lb .mx-me small { align-self: end; color: rgba(255, 255, 255, .72); font: 900 .7rem/1.2 'Nunito', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
#mx-lb .mx-me b { font: 700 1.55rem/1.2 var(--cx-fd, 'Unbounded', sans-serif); }
#mx-lb .mx-me .xp { align-self: start; color: #FFD84A; font-weight: 900; font-size: .9rem; }
#mx-lb .mx-me .sub { grid-column: 1 / -1; margin-top: 14px; color: rgba(255, 255, 255, .92); font-weight: 700; font-size: .9rem; line-height: 1.45; }
#mx-lb .mx-me .sub b { font: 900 .9rem/1 'Nunito', sans-serif; color: #FFD84A; }
#mx-lb .mx-me .bar { grid-column: 1 / -1; height: 9px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
#mx-lb .mx-me .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FFB300, #FFE066); }
#mx-lb .mx-body { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 22px; align-items: start; }
#mx-lb .mx-body.solo { grid-template-columns: minmax(0, 560px); justify-content: center; }
/* Шилдэг гурав — тавцан */
#mx-lb .mx-pod { position: sticky; top: 92px; padding: 22px 18px 0; overflow: hidden; background: linear-gradient(180deg, #fff 30%, #F6F2FF); }
#mx-lb .mx-pod.sk { min-height: 380px; }
#mx-lb .mx-pod h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1rem; }
#mx-lb .mx-pod h3 svg { width: 20px; height: 20px; color: var(--cx-vio, #7B52EE); }
#mx-lb .pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
#mx-lb .pd { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
#mx-lb .pd.s1 { --rc: #FFB300; --rc2: #FFDA55; }
#mx-lb .pd.s2 { --rc: #8E9AB5; --rc2: #CBD3E4; }
#mx-lb .pd.s3 { --rc: #D27A43; --rc2: #F2B488; }
#mx-lb .pd .cr { width: 32px; height: 32px; margin-bottom: -4px; color: #FFC113; filter: drop-shadow(0 4px 6px rgba(217, 154, 0, .45)); }
#mx-lb .pd .cr svg { width: 100%; height: 100%; }
#mx-lb .pd .av { width: 68px; height: 68px; border: 4px solid var(--rc); box-shadow: 0 12px 22px -12px rgba(30, 26, 77, .55); }
#mx-lb .pd.s1 .av { width: 88px; height: 88px; }
#mx-lb .pd .nm { max-width: 100%; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: .92rem; }
#mx-lb .pd .you { margin: 5px 0 0; }
#mx-lb .pd .x { margin-top: 4px; color: var(--cx-vio, #7B52EE); font-weight: 900; font-size: .82rem; }
#mx-lb .pd .st {
  display: flex; justify-content: center; width: 100%; margin-top: 12px; padding-top: 14px; border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, var(--rc2), var(--rc)); color: #fff; font: 700 1.7rem/1 var(--cx-fd, 'Unbounded', sans-serif); text-shadow: 0 2px 0 rgba(0, 0, 0, .14);
}
#mx-lb .pd.s1 .st { height: 136px; }
#mx-lb .pd.s2 .st { height: 100px; }
#mx-lb .pd.s3 .st { height: 76px; }
#mx-lb .pd.me .av { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--cx-vio, #7B52EE), 0 12px 22px -12px rgba(30, 26, 77, .55); }
/* Жагсаалт (4–20) */
#mx-lb .mx-lsw { padding: 8px; }
#mx-lb .mx-lsw.sk { display: grid; gap: 10px; padding: 14px; min-height: 380px; background: #fff; border-color: var(--cx-line, rgba(30, 26, 77, .08)); }
#mx-lb .mx-lsw.sk i { display: block; height: 56px; border-radius: 16px; background: #F4F1FC; }
#mx-lb .mx-ls { list-style: none; margin: 0; padding: 0; }
#mx-lb .mx-ls li { display: grid; grid-template-columns: 38px 46px minmax(0, 1fr) 96px; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 16px; }
#mx-lb .mx-ls li + li { margin-top: 2px; }
#mx-lb .mx-ls li:hover { background: #F8F6FF; }
#mx-lb .mx-ls .r { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: #F3F0FB; color: #5F5986; font: 900 .92rem/1 'Nunito', sans-serif; }
#mx-lb .mx-ls .av { width: 46px; height: 46px; }
#mx-lb .mx-ls .nm { min-width: 0; }
#mx-lb .mx-ls .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: .98rem; }
#mx-lb .mx-ls .nm i { display: block; height: 6px; margin-top: 7px; border-radius: 99px; background: #EEEAF9; overflow: hidden; }
#mx-lb .mx-ls .nm i::before { content: ''; display: block; width: var(--w); height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C3B2FF, #7B52EE); }
#mx-lb .mx-ls .x { text-align: right; font: 900 1rem/1 'Nunito', sans-serif; white-space: nowrap; }
#mx-lb .mx-ls .x small { margin-left: 4px; color: var(--cx-mut2, #9C96BC); font-size: .72rem; }
#mx-lb .mx-ls li.me { background: #F1ECFF; box-shadow: inset 4px 0 0 var(--cx-vio, #7B52EE); }
#mx-lb .mx-ls li.me .r { background: var(--cx-vio, #7B52EE); color: #fff; }
#mx-lb .mx-ls li.me .nm i::before { background: linear-gradient(90deg, #FFB300, #FFE066); }
#mx-lb .mx-ls li.gap { display: block; height: 0; margin: 10px 12px; padding: 0; border-top: 2px dashed #E4DEF5; border-radius: 0; background: none; }
#mx-lb .mx-empty { max-width: 560px; margin: 0 auto; }

/* ════════ Mathlet ════════ */
#mx-ml .mx-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: center; padding: 34px 38px;
  border-radius: 28px; border: 1px solid var(--cx-line, rgba(30, 26, 77, .08)); box-shadow: 0 30px 60px -44px rgba(30, 26, 77, .6);
  background: radial-gradient(420px 260px at 92% 0, rgba(18, 198, 216, .16), transparent 70%), radial-gradient(520px 320px at 0 100%, rgba(123, 82, 238, .14), transparent 70%), linear-gradient(135deg, #fff, #F6F2FF);
}
#mx-ml .mx-hero .tx { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
#mx-ml .mx-hero h2 { font-size: 2.4rem; letter-spacing: .5px; }
#mx-ml .mx-hero p { color: var(--cx-mut, #68628F); font-weight: 700; line-height: 1.55; max-width: 540px; }
#mx-ml .art svg { display: block; width: 100%; height: auto; }
#mx-ml .mx-hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
#mx-ml .mx-hero .chips span {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; background: #fff; border: 1px solid var(--cx-line, rgba(30, 26, 77, .08));
  font: 900 .9rem/1 'Nunito', sans-serif; box-shadow: 0 10px 20px -16px rgba(30, 26, 77, .5);
}
#mx-ml .mx-hero .chips svg { width: 18px; height: 18px; color: var(--cx-vio, #7B52EE); }
/* Кодоор нэгдэх — 6 нүд (жинхэнэ input нь дээр нь, үл үзэгдэх) */
#mx-ml .mx-join { width: 100%; margin-top: 14px; }
#mx-ml .mx-join label { display: block; margin-bottom: 10px; color: var(--cx-mut, #68628F); font: 900 .74rem/1 'Nunito', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
#mx-ml .mx-join .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
#mx-ml .code { position: relative; display: flex; gap: 8px; }
#mx-ml .code input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
#mx-ml .code span {
  display: flex; align-items: center; justify-content: center; width: 50px; height: 60px; border-radius: 15px; background: #fff; border: 2px solid #E1DBF4; box-shadow: 0 4px 0 #E1DBF4;
  color: var(--cx-tx, #1E1A4D); font: 700 1.5rem/1 var(--cx-fd, 'Unbounded', sans-serif); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
#mx-ml .code span.on { border-color: #C9B8FF; box-shadow: 0 4px 0 #C9B8FF; }
#mx-ml .code.focus span.cur { border-color: var(--cx-vio, #7B52EE); box-shadow: 0 4px 0 #A98BFF, 0 0 0 4px rgba(123, 82, 238, .16); }
#mx-ml .code.focus span.cur:empty::after { content: ''; width: 2px; height: 26px; border-radius: 2px; background: var(--cx-vio, #7B52EE); animation: mx-blink 1s steps(1) infinite; }
#mx-ml .code.full span { border-color: #8FE0BC; box-shadow: 0 4px 0 #8FE0BC; }
#mx-ml .code.err span { border-color: #F2667E; box-shadow: 0 4px 0 #F6A3B2; }
#mx-ml .code.err { animation: mx-shake .35s ease; }
@keyframes mx-blink { 50% { opacity: 0; } }
@keyframes mx-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
#mx-ml .mx-join .msg { min-height: 1.3em; margin-top: 10px; color: var(--cx-mut2, #9C96BC); font-weight: 800; font-size: .86rem; }
#mx-ml .mx-join .msg.err { color: #D92D4B; }
/* Үргэлжлүүлэх */
#mx-ml .mx-res {
  display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 16px 18px; border-radius: 22px;
  background: linear-gradient(135deg, #E9FBF3, #F5FFFA); border: 1.5px solid #B4EBD2; box-shadow: 0 18px 34px -28px rgba(18, 183, 106, .7);
}
#mx-ml .mx-res .ic { display: flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(180deg, #2BD18A, #12A862); color: #fff; }
#mx-ml .mx-res .ic svg { width: 22px; height: 22px; }
#mx-ml .mx-res .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#mx-ml .mx-res b { font-weight: 900; font-size: 1rem; }
#mx-ml .mx-res small { color: #2F7A58; font-weight: 800; font-size: .84rem; }
#mx-ml .mx-res .cd { font-family: var(--cx-fd, 'Unbounded', sans-serif); font-weight: 700; letter-spacing: .14em; color: var(--cx-tx, #1E1A4D); }
/* Алхмууд / хэлбэрүүд */
#mx-ml .mx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#mx-ml .mx-step { padding: 20px 20px 22px; }
#mx-ml .mx-step .n { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 12px; background: #F1ECFF; color: var(--cx-vio, #7B52EE); font: 700 1rem/1 var(--cx-fd, 'Unbounded', sans-serif); }
#mx-ml .mx-step:nth-child(2) .n { background: #DFF8FB; color: #0A9BAA; }
#mx-ml .mx-step:nth-child(3) .n { background: #FFF2C7; color: #B07800; }
#mx-ml .mx-step b, #mx-ml .mx-mode b { display: block; margin-bottom: 5px; font-weight: 900; font-size: 1rem; }
#mx-ml .mx-step p, #mx-ml .mx-mode p { color: var(--cx-mut, #68628F); font-weight: 700; font-size: .9rem; line-height: 1.5; }
#mx-ml .mx-sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
#mx-ml .mx-sk-grid .sk { height: 130px; }
/* Багш: ангиуд */
#mx-ml .mx-cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
#mx-ml .mx-cls {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; border-radius: 22px; border: 1px solid var(--cx-line, rgba(30, 26, 77, .08));
  background: #fff; color: var(--cx-tx, #1E1A4D); text-align: left; cursor: pointer; box-shadow: 0 18px 36px -30px rgba(30, 26, 77, .5);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
#mx-ml .mx-cls:hover { transform: translateY(-2px); border-color: #D9CCFF; box-shadow: 0 24px 40px -28px rgba(91, 59, 217, .55); }
#mx-ml .mx-cls .top { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
#mx-ml .mx-cls .ic { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, #8D66FF, #5B3BD9); color: #fff; }
#mx-ml .mx-cls .ic svg { width: 24px; height: 24px; }
#mx-ml .mx-cls .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#mx-ml .mx-cls .tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 900; font-size: 1.04rem; line-height: 1.3; }
#mx-ml .mx-cls .tx small { color: var(--cx-mut, #68628F); font-weight: 800; font-size: .86rem; }
#mx-ml .mx-cls .go { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px; background: #FFF4CC; color: #7A5200; font: 900 .86rem/1 'Nunito', sans-serif; }
#mx-ml .mx-cls .go svg { width: 16px; height: 16px; }
#mx-ml .mx-cls:hover .go { background: linear-gradient(180deg, #FFD84A, #FFB300); color: #3B2700; }
#mx-ml .mx-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#mx-ml .mx-mode { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; }
#mx-ml .mx-mode .ic { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 14px; }
#mx-ml .mx-mode .ic svg { width: 22px; height: 22px; }
#mx-ml .mx-mode .ic.p { background: #F1ECFF; color: var(--cx-vio, #7B52EE); }
#mx-ml .mx-mode .ic.q { background: #DFF8FB; color: #0A9BAA; }
#mx-ml .mx-empty { margin-top: 24px; }

/* ════════ Тавлет / утас ════════ */
@media (max-width: 1000px) {
  #mx-lb .mx-hd { grid-template-columns: minmax(0, 1fr); }
  #mx-lb .mx-body { grid-template-columns: minmax(0, 1fr); }
  #mx-lb .mx-pod { position: static; }
  #mx-ml .mx-hero { grid-template-columns: minmax(0, 1fr) 260px; padding: 30px; }
}
@media (max-width: 768px) {
  .mx { padding-top: 8px; }
  .mx .mx-sec-h { margin-top: 24px; }
  .mx .mx-sec-h h3 { font-size: 1rem; }
  .mx .mx-sec-h small { white-space: nowrap; }
  #mx-lb .mx-hd { gap: 16px; margin-bottom: 16px; }
  #mx-lb .mx-hd h2 { font-size: 1.55rem; }
  #mx-lb .mx-hd p { font-size: .88rem; }
  #mx-lb .acts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  #mx-lb .acts i { display: none; }
  #mx-lb .mx-me { min-height: 0; padding: 18px; }
  #mx-lb .mx-body { gap: 16px; }
  #mx-lb .mx-pod { padding: 18px 12px 0; }
  #mx-lb .pd .av { width: 56px; height: 56px; border-width: 3px; }
  #mx-lb .pd.s1 .av { width: 72px; height: 72px; }
  #mx-lb .pd .nm { font-size: .84rem; }
  #mx-lb .pd.s1 .st { height: 112px; }
  #mx-lb .pd.s2 .st { height: 84px; }
  #mx-lb .pd.s3 .st { height: 62px; }
  #mx-lb .mx-lsw { padding: 6px; }
  #mx-lb .mx-ls li { grid-template-columns: 30px 40px minmax(0, 1fr) 78px; gap: 10px; padding: 8px; }
  #mx-lb .mx-ls .r { width: 30px; height: 30px; border-radius: 10px; font-size: .84rem; }
  #mx-lb .mx-ls .av { width: 40px; height: 40px; }
  #mx-lb .mx-ls .nm b { font-size: .92rem; }
  #mx-lb .mx-ls .x { font-size: .92rem; }
  #mx-ml .mx-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 18px 22px; border-radius: 24px; }
  #mx-ml .mx-hero h2 { font-size: 1.8rem; }
  #mx-ml .mx-hero p { font-size: .92rem; }
  #mx-ml .art { display: none; }
  #mx-ml .mx-join .row { gap: 12px; }
  #mx-ml .code { width: 100%; gap: 6px; }
  #mx-ml .code span { flex: 1; width: auto; min-width: 0; height: 54px; border-radius: 13px; font-size: 1.3rem; }
  #mx-ml .mx-join .mx-btn { width: 100%; }
  #mx-ml .mx-res { flex-wrap: wrap; }
  #mx-ml .mx-res .mx-btn { width: 100%; }
  #mx-ml .mx-steps, #mx-ml .mx-modes, #mx-ml .mx-sk-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #mx-ml .mx-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  #mx-ml .mx-step .n { grid-row: 1 / span 2; margin: 0; }
  #mx-ml .mx-cls-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #mx-ml .mx-cls { flex-direction: row; align-items: center; gap: 12px; padding: 14px; }
  #mx-ml .mx-cls .top { flex: 1; }
  #mx-ml .mx-cls .go { flex: none; width: 42px; height: 42px; padding: 0; justify-content: center; }
  #mx-ml .mx-cls .go > span, #mx-ml .mx-cls .go > svg:first-child { display: none; }
  #mx-ml .mx-cls .go svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mx .mx-eb.live i, .mx .sk::after, #mx-ml .code.err, #mx-ml .code.focus span.cur:empty::after { animation: none; }
}
