/* ==========================================================================
   THR — Chi tiết thử thách ĐỘI (CL 626) · mockup «Chi Tiet Thu Thach Team»
   Tiền tố .cm-   · máy tính theo bản thường, ≤860px theo bản Mobile (390px)
   ========================================================================== */
.cm { --cm-line: #f1f5f7; --cm-line2: #e3ebef; --cm-in: #d3e0e6; --cm-warn: #b86a14; --cm-warn-bg: #fff1df; --cm-blue: #1d6f86; --cm-blue-bg: #dcecf3; --cm-me: #e6f4ef; background: var(--t-bg); color: var(--t-navy); }
.cm [x-cloak] { display: none !important; }
.cm-show-s { display: none !important; }
.cm button { font-family: inherit; color: inherit; }
.cm .r { text-align: right; }
.cm .c2 { color: var(--t-text-2); }
.cm .g { color: var(--t-teal); font-weight: 600; }
.cm small { font-size: inherit; }

/* ---------- Hero ---------- */
.cm-hero { position: relative; background: var(--t-dark); color: #fff; }
.cm-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.cm-hero-bg > div { position: absolute; inset: 0; background-position: 70% 40%; background-size: cover; background-repeat: no-repeat; opacity: .28; }
.cm-hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 110%, rgba(23, 152, 122, .55) 0%, rgba(14, 42, 60, 0) 60%), linear-gradient(180deg, rgba(14, 42, 60, .6) 0%, rgba(14, 42, 60, .92) 100%); }
.cm-hero-body { position: relative; max-width: 1184px; margin: 0 auto; padding: 132px clamp(20px, 4vw, 48px) 40px; box-sizing: content-box; }
.cm-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cm .cm-back { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 12px; font-weight: 600; color: var(--t-hero-text); }
.cm .cm-back:hover { color: #fff; }
.cm-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-hero-acts form { margin: 0; }
.cm .cm-hbtn { display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.cm .cm-hbtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.cm .cm-hbtn-pri { background: var(--t-teal); border-color: var(--t-teal); }
.cm .cm-hbtn-pri:hover { background: #128a6e; }
.cm-hero-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; margin-top: 16px; }
.cm-hero-main { flex: 1.4 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-st { color: #fff; font-family: var(--t-display); font-weight: 700; letter-spacing: .06em; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--t-grey); }
.cm-st.live { background: var(--t-green); }
.cm-st.soon { background: var(--t-gold); color: var(--t-dark); }
.cm-chip { background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.cm .cm-h1 .t-grad-text { white-space: nowrap; }
.cm .cm-h1 { margin: 0; font-family: var(--t-display); font-weight: 700; font-size: clamp(40px, 5.4vw, 58px); line-height: .92; color: #fff; text-transform: uppercase; }
.cm-lead { margin: 0; max-width: 540px; font-size: 15px; line-height: 1.65; color: var(--t-hero-text); }
.cm-dates { font-size: 14px; color: var(--t-hero-text); }
.cm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr)); gap: 8px; max-width: 600px; }
.cm-stats > div { padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.cm-stats b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 28px; line-height: 1; color: #fff; }
.cm-stats > div > span { display: block; font-size: 12px; color: var(--t-hero-muted); margin-top: 2px; }

/* Kết quả của tôi */
.cm-me { flex: 1 1 340px; min-width: 0; border-radius: 22px; padding: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.cm-me-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-me-lbl { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7fe0bd; }
.cm-me-badge { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--t-dark); background: #f5b524; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cm-me-who { display: flex; align-items: center; gap: 14px; }
.cm .cm-me-av { width: 52px; height: 52px; font-size: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.cm-me-id { flex: 1; min-width: 0; }
.cm-me-n { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-me-s { font-size: 12px; color: var(--t-hero-muted); }
.cm-me-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); gap: 8px; }
.cm-me-grid > div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.cm-me-grid > div > span { display: block; font-size: 11px; color: var(--t-hero-muted); white-space: nowrap; }
.cm-me-grid b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.cm-me-grid b small { font-size: 14px; color: var(--t-hero-muted); }
.cm-me-grid > div.gold { background: rgba(245, 181, 36, .14); border: 1px solid rgba(245, 181, 36, .35); }
.cm-me-grid > div.gold > span { color: #ffd77a; }
.cm-me-ph { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--t-hero-text); }
.cm-me-ph span { flex: 1; white-space: nowrap; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.cm-me-ph strong { color: #fff; }
.cm .cm-me-more { align-self: flex-start; border: none; background: none; padding: 0; font-size: 12px; font-weight: 600; color: #7fe0bd; cursor: pointer; }
.cm .cm-me-more:hover { color: #fff; }
.cm-pod-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.cm-pod-n { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; }
.cm-pod-km { font-size: 12px; color: var(--t-hero-muted); }
.cm-pod-row b { font-family: var(--t-display); font-weight: 700; font-size: 24px; }
.cm-podium .cm-rk { background: rgba(255, 255, 255, .12); color: #fff; }

.cm-anchors { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.cm .cm-anchors a { min-height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13px; font-weight: 600; box-sizing: border-box; }
.cm .cm-anchors a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cm-mnav { display: none; }

.cm-flash-wrap { padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Khung nội dung ---------- */
.cm-main { max-width: 1280px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 48px) 80px; display: flex; flex-direction: column; gap: 24px; box-sizing: content-box; }
.cm-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--t-shadow); scroll-margin-top: 110px; min-width: 0; box-sizing: border-box; }
.cm .cm-h2 { margin: 0; font-family: var(--t-display); font-weight: 700; font-size: 28px; line-height: 1.05; }
.cm-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cm-sec-sub { font-size: 13px; color: var(--t-muted); }
.cm-foot-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--t-muted); }
.cm-foot-note.lg { font-size: 13px; color: var(--t-text-2); }
.cm-foot-note strong { color: var(--t-navy); }
.cm-note-soon { padding: 14px 18px; border-radius: 16px; background: var(--t-gold-bg); border: 1px solid #f5d27a; color: #6b4a14; font-size: 14px; text-align: center; }
.cm-empty { padding: 28px; text-align: center; color: var(--t-muted); font-size: 14px; }
.cm-empty.sm { padding: 14px; font-size: 13px; }

/* hạng, huy chương, ảnh đại diện, mũi tên lên/xuống hạng */
.cm-medal { width: 30px; height: 30px; object-fit: contain; display: block; flex: none; }
.cm-rk { width: 32px; height: 28px; border-radius: 8px; background: #f1f5f7; color: var(--t-navy); display: flex; align-items: center; justify-content: center; font-family: var(--t-display); font-weight: 700; font-size: 16px; flex: none; }
.cm-rk.sm { width: 30px; height: 26px; font-size: 15px; }
.cm-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: block; background: #eef3f6; }
.cm-av.sm { width: 26px; height: 26px; }
.cm-av-ini { display: flex; align-items: center; justify-content: center; background: var(--t-grad-btn); color: #fff; font-size: 11px; font-weight: 600; }
.cm-av-ini.sm { font-size: 10px; }
.cm-dl { font-size: 11px; font-weight: 700; white-space: nowrap; margin-left: 4px; font-family: var(--t-font); }
.cm-dl.up { color: var(--t-green); }
.cm-dl.down { color: var(--t-red); }
.cm-dl.flat { display: none; }
.cm-tag { display: inline-flex; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; font-family: var(--t-font); }
.cm-tag.mine { color: #fff; background: var(--t-teal); }
.cm-tag.fine { color: var(--cm-warn); background: var(--cm-warn-bg); }
.cm-tag.long { color: var(--t-teal); background: var(--t-mint-bg); font-size: 9px; }
.cm-flag { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; flex: none; }
.cm-flag.red { background: var(--t-red); }
.cm-flag.amber { background: var(--t-gold); }
.cm-rest { font-size: 10px; font-weight: 600; color: var(--t-red); background: #fdecec; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }

/* ---------- BXH đội ---------- */
.cm-tscroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.cm-tbl { min-width: 680px; }
.cm-thead, .cm-trow > summary { display: grid; grid-template-columns: 44px minmax(0, 1.2fr) 80px 80px 70px 90px 90px 28px; gap: 10px; align-items: center; }
.cm-thead { padding: 10px 14px; border-radius: 12px; background: #f7fafb; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.cm-trow { border-bottom: 1px solid var(--cm-line); }
.cm-trow > summary { list-style: none; cursor: pointer; padding: 12px 14px; border-radius: 12px; }
.cm-trow > summary::-webkit-details-marker { display: none; }
.cm-trow > summary:hover { background: #f7fafb; }
.cm-trow[open] > summary { background: var(--t-soft); }
.cm-trk { display: flex; align-items: center; }
.cm-tname { min-width: 0; }
.cm-tname-1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; font-size: 15px; }
.cm-tname-1 .cm-dl { margin-left: -2px; }
.cm-tsub { display: none; }
.cm-trow .c2 { color: var(--t-text-2); }
.cm-ttot { font-family: var(--t-display); font-weight: 700; font-size: 22px; }
.cm-ttot small { display: none; }
.cm-chev { display: flex; color: var(--t-muted); transition: transform .2s; }
.cm-trow[open] .cm-chev { transform: rotate(180deg); }
.cm-tdetail { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 14px 18px 68px; }
.cm-tmem { flex: 1.4 1 320px; min-width: 0; }
.cm-tmem-h, .cm-tmem-r { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px; gap: 8px; align-items: center; }
.cm-tmem-h { font-size: 11px; font-weight: 600; color: var(--t-muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
.cm-tmem-r { padding: 7px 4px; border-top: 1px solid var(--cm-line); font-size: 14px; border-radius: 6px; }
.cm-tmem-r.me { background: var(--cm-me); }
.cm-tmem-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cm-tmem-n .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-tmem-n .nk { color: var(--t-muted-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.cm-tie { flex: 1 1 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.cm-tie-h { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); padding: 6px 0 0; }
.cm-tie > div:not(.cm-tie-h) { padding: 10px; border-radius: 12px; background: var(--t-soft); }
.cm-tie b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 20px; }
.cm-tie span { font-size: 11px; color: var(--t-muted); }

/* ---------- BXH cá nhân + Top ---------- */
.cm-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cm-ind { flex: 999 1 560px; }
.cm-top { flex: 1 1 320px; min-width: 280px; }
.cm-search { width: 100%; min-height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--cm-in); background: #f7fafb; font-size: 13px; color: var(--t-navy); box-sizing: border-box; margin-bottom: 10px; outline: none; }
.cm-search:focus { border-color: var(--t-teal); background: #fff; }
.cm .cm-ind-r { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 60px; gap: 10px; align-items: center; padding: 9px 8px; border: none; border-bottom: 1px solid var(--cm-line); background: none; border-radius: 8px; text-align: left; cursor: pointer; }
.cm .cm-ind-r:hover { background: #f7fafb; }
.cm .cm-ind-r.me { background: var(--cm-me); }
.cm-ind-rk { display: flex; align-items: center; min-width: 0; }
.cm-ind-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cm-ind-id { min-width: 0; display: flex; flex-direction: column; }
.cm-ind-n { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cm-ind-n .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-ind-s { font-size: 11px; color: var(--t-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-team-chip { font-size: 12px; font-weight: 600; color: var(--t-text-2); background: #eef3f6; padding: 3px 8px; border-radius: 999px; text-align: center; white-space: nowrap; }
.cm-ind-p { text-align: right; font-family: var(--t-display); font-size: 20px; font-weight: 700; }
.cm .cm-more { display: block; margin: 12px auto 0; min-height: 40px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--t-navy); background: #fff; color: var(--t-navy); font-weight: 600; font-size: 13px; cursor: pointer; }
.cm .cm-more:hover { background: var(--t-navy); color: #fff; }

.cm-top .cm-sec-head { align-items: center; }
.cm-topg + .cm-topg { margin-top: 16px; }
.cm-topg-t { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.cm-topg-m .cm-topg-t { color: var(--cm-blue); }
.cm-topg-f .cm-topg-t { color: #c9733a; }
.cm .cm-top-r { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 44px; gap: 8px; align-items: center; padding: 7px 4px; border: none; border-top: 1px solid var(--cm-line); background: none; font-size: 14px; text-align: left; cursor: pointer; border-radius: 6px; }
.cm .cm-top-r:hover { background: #f7fafb; }
.cm .cm-top-r.me { background: var(--cm-me); }
.cm-top-rk { display: flex; align-items: center; }
.cm-top-rk .n { font-family: var(--t-display); font-weight: 700; font-size: 17px; width: 30px; text-align: center; }
.cm-top-n { display: flex; align-items: center; min-width: 0; }
.cm-top-n .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.cm-top-km { text-align: right; font-size: 12px; color: var(--t-muted); white-space: nowrap; }
.cm-top-r strong { text-align: right; font-family: var(--t-display); font-size: 18px; }
.cm-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: #eef3f6; }
.cm-tabs button { min-height: 34px; padding: 0 18px; border: none; border-radius: 999px; background: transparent; color: var(--t-text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.cm-tabs button.on { background: var(--t-grad-btn); color: #fff; }

/* ---------- Mục thu gọn ---------- */
.cm .cm-fold-btn { width: 100%; display: flex; align-items: center; gap: 14px; border: none; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--t-navy); }
.cm-fold-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.cm-fold-t .cm-h2 { flex: none; }
.cm-fold-t .cm-sec-sub { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-fold-act { display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 600; color: var(--t-teal); }
.cm-fold-act .l-o { display: none; }
.cm-fold.open .cm-fold-act .l-o { display: inline; }
.cm-fold.open .cm-fold-act .l-c { display: none; }
.cm-fold-ic { width: 32px; height: 32px; border-radius: 50%; background: #eef3f6; display: flex; align-items: center; justify-content: center; color: var(--t-navy); transition: transform .25s; }
.cm-fold.open .cm-fold-ic { transform: rotate(180deg); }
.cm-fold-body { display: none; margin-top: 18px; }
.cm-fold.open .cm-fold-body { display: block; }

/* Điểm theo ngày */
.cm-daytbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.cm-daytbl th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); padding: 10px 12px; background: #f7fafb; text-align: left; }
.cm-daytbl th.r { text-align: right; }
.cm-daytbl td { padding: 9px 12px; border-top: 1px solid var(--cm-line); color: var(--t-text-2); }
.cm-daytbl td strong { color: var(--t-navy); }
.cm-daytbl tr.long td { background: #fafdfc; }

/* ---------- Chuồng ---------- */
.cm-pot-intro { margin: 0 0 12px; font-size: 13px; color: var(--t-muted); }
.cm-pots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); gap: 8px; }
.cm-pot { border-radius: 16px; background: #f7fafb; overflow: hidden; min-width: 0; }
.cm-pot-h { padding: 10px 12px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-pot-t { font-family: var(--t-display); font-weight: 700; font-size: 18px; line-height: 1; white-space: nowrap; }
.cm-pot-l { font-size: 11px; opacity: .85; }
.cm-pot-names { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.cm-pot-p { font-size: 12px; line-height: 1.3; padding: 3px 0; font-weight: 500; overflow-wrap: anywhere; display: flex; align-items: center; gap: 7px; border-radius: 10px; }
.cm-pot-p small { color: var(--t-muted-2); font-size: 11px; }
.cm-pot-p em { color: var(--t-teal); font-size: 11px; }
.cm-pot-p.me { color: var(--t-teal); font-weight: 700; }
.cm-pot-p.hit { font-weight: 700; background: var(--t-gold-bg); box-shadow: 0 0 0 2px #f5b524; }

/* ---------- Cách tính điểm ---------- */
.cm-calc-wrap { display: flex; flex-direction: column; gap: 24px; }
.cm-formula { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.cm-fm { padding: 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; }
.cm-fm.dark { background: var(--t-dark); color: #fff; }
.cm-fm.mint { background: var(--cm-me); border: 1px solid #bfe3d6; }
.cm-fm-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7fe0bd; }
.cm-fm.mint .cm-fm-k { color: var(--t-teal); }
.cm-fm-eq { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--t-display); font-weight: 700; font-size: 22px; }
.cm-fm-eq span { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.cm-fm.mint .cm-fm-eq span { background: #fff; }
.cm-fm-eq span.grad { background: var(--t-grad-btn); color: #fff; }
.cm-fm.mint .cm-fm-eq span.navy { background: var(--t-navy); color: #fff; }
.cm-fm-eq i { font-style: normal; color: #7fe0bd; }
.cm-fm.mint .cm-fm-eq i { color: var(--t-teal); }
.cm-fm-d { font-size: 13px; line-height: 1.5; color: var(--t-hero-muted); }
.cm-fm.mint .cm-fm-d { color: var(--t-text-2); }

.cm-box { padding: 18px; border-radius: 18px; border: 1px solid var(--cm-line2); background: #fff; min-width: 0; box-sizing: border-box; }
.cm-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.cm-step > span { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--t-navy); color: #fff; font-family: var(--t-display); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.cm-step-t { font-size: 18px; font-weight: 700; line-height: 1.2; }
.cm-step-d { font-size: 13px; color: var(--t-muted); margin-top: 3px; line-height: 1.45; }

.cm-sched { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-phase { flex: 7 1 300px; min-width: 0; padding: 12px; border-radius: 14px; background: #fafcfd; border: 1px solid var(--t-line); }
.cm-phase-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cm-phase-h > div { display: flex; align-items: baseline; gap: 8px; }
.cm-phase-h b { font-family: var(--t-display); font-weight: 700; font-size: 18px; }
.cm-phase-h > div span { font-size: 12px; color: var(--t-muted); }
.cm-phase-h em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--t-teal); background: var(--t-mint-bg); padding: 3px 9px; border-radius: 999px; }
.cm-days { display: grid; grid-template-columns: repeat(var(--nd, 7), minmax(0, 1fr)); gap: 4px; }
.cm-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 0; border-radius: 12px; background: var(--t-soft); }
.cm-day > span { font-size: 10px; color: var(--t-muted); }
.cm-day b { font-family: var(--t-display); font-weight: 700; font-size: 22px; line-height: 1; }
.cm-day i { width: 5px; height: 5px; border-radius: 50%; background: #9fd9c4; margin-top: 3px; }
.cm-day.long { background: var(--t-grad-btn); color: #fff; box-shadow: 0 6px 14px rgba(23, 152, 122, .3); }
.cm-day.long > span { color: #fff; opacity: .85; font-weight: 600; }
.cm-day small { font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.cm-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--t-line); }
.cm-legend > div { display: flex; gap: 10px; align-items: flex-start; }
.cm-legend .sw { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--t-soft); border: 1px solid var(--cm-in); box-sizing: border-box; }
.cm-legend .sw.grad { background: var(--t-grad-btn); border: none; }
.cm-legend .sw.warn { background: #fff4e5; border-color: #f5c98a; }
.cm-legend b { display: block; font-size: 14px; font-weight: 600; }
.cm-legend small { display: block; font-size: 12px; color: var(--t-muted); margin-top: 2px; line-height: 1.5; }

.cm-two { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cm-pts { flex: 1.2 1 340px; }
.cm-pt-h, .cm-pt { display: grid; grid-template-columns: minmax(0, 1fr) 78px 92px; gap: 10px; align-items: center; }
.cm-pt-h { padding: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.cm-pt-h .c { text-align: center; }
.cm-pt-g { padding: 10px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-muted-2); }
.cm-pt { padding: 11px 0; border-top: 1px solid var(--cm-line); }
.cm-pt b { display: block; font-size: 14px; font-weight: 600; }
.cm-pt small { display: block; font-size: 12px; color: var(--t-muted); margin-top: 2px; line-height: 1.45; }
.cm-pt .v { justify-self: center; min-width: 56px; padding: 6px 8px; border-radius: 10px; text-align: center; font-family: var(--t-display); font-weight: 700; font-size: 18px; line-height: 1; white-space: nowrap; box-sizing: border-box; }
.cm-pt .v.navy { background: var(--t-navy); color: #fff; }
.cm-pt .v.mint { background: var(--t-mint-bg); color: var(--t-teal); }
.cm-pt .v.blue { background: var(--cm-blue-bg); color: var(--cm-blue); }
.cm-pt .v.warn { background: var(--cm-warn-bg); color: var(--cm-warn); }
.cm-pt .w { justify-self: end; font-size: 11px; font-weight: 600; color: var(--t-text-2); text-align: right; }

.cm-calc { flex: 1 1 300px; position: sticky; top: calc(var(--t-hdr, 96px) + 14px); transition: top .3s ease; border: 1.5px dashed #9fd9c4; background: #fafdfc; }
.cm-calc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cm-calc-h > span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-teal); }
.cm-seg { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: #eef3f6; }
.cm-seg button { min-height: 28px; padding: 0 10px; border: none; border-radius: 999px; background: transparent; color: var(--t-text-2); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cm-seg button.on { background: var(--t-grad-btn); color: #fff; }
.cm-calc-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
.cm-calc-in label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11px; font-weight: 600; color: var(--t-muted); }
.cm-calc-in input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--cm-in); font-size: 16px; font-weight: 600; color: var(--t-navy); background: #fff; outline: none; }
.cm-calc-in input:focus { border-color: var(--t-teal); }
.cm-cs { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--t-line); font-size: 13px; }
.cm-cs span { color: var(--t-text-2); }
.cm-cs strong.warn { color: var(--cm-warn); }
.cm-cs strong.ok { color: var(--t-teal); }
.cm-cs strong.mute { color: var(--t-muted-2); }
.cm-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cm-calc-out > div { padding: 10px 12px; border-radius: 12px; }
.cm-calc-out .d { background: var(--t-dark); color: #fff; }
.cm-calc-out .m { background: var(--cm-me); }
.cm-calc-out span { display: block; font-size: 11px; color: var(--t-hero-muted); }
.cm-calc-out .m span { color: var(--t-teal); }
.cm-calc-out b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 30px; line-height: 1; }
.cm-calc-note { margin: 10px 0 0; font-size: 11px; color: var(--t-muted); line-height: 1.5; }

.cm-rules { overflow-x: auto; }
.cm-rule-h, .cm-rule { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; min-width: 560px; }
.cm-rule-h { padding: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.cm-rule-h .ok { color: var(--t-green); }
.cm-rule-h .no { color: #d9534f; }
.cm-rule { align-items: stretch; padding: 8px 0; border-top: 1px solid var(--cm-line); }
.cm-rule .k { font-size: 13px; font-weight: 700; align-self: center; }
.cm-rule .y, .cm-rule .n { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.cm-rule .y { background: #eefaf4; }
.cm-rule .n { background: #fdf1ef; color: #6b3a2e; }
.cm-ok, .cm-no { width: 18px; height: 18px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cm-ok { background: var(--t-green); }
.cm-no { background: #d9534f; }
.cm-hr-note { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff4e5; font-size: 13px; color: #6b4a14; line-height: 1.5; }
.cm-hr-note > span { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--t-gold); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cm-hr-note .cm-flag { display: inline-flex; vertical-align: -3px; }

.cm-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.cm-tri { padding: 16px; border-radius: 16px; background: #f7fafb; }
.cm-tri.warn { background: var(--cm-warn-bg); }
.cm-tri > b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.cm-tri.warn > b { color: var(--cm-warn); }
.cm-tri p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--t-text-2); }
.cm-tri.warn p { color: #6b4a14; }
.cm-tri p strong { color: var(--t-navy); }
.cm-tri p.sm { font-size: 12px; color: var(--t-muted); margin: 8px 0 0; }
.cm-tri ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--t-navy); list-style: decimal; }
.cm-tri ol small { color: var(--t-muted); font-size: 11px; }

/* ---------- Luật ---------- */
.cm-info4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-bottom: 18px; }
.cm-info4 > div { padding: 12px 14px; border-radius: 14px; background: var(--t-soft); }
.cm-info4 > div > span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.cm-info4 b { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; line-height: 1.4; }
.cm-info4 b small { display: block; font-size: 12px; font-weight: 500; color: var(--t-muted); }
.cm-law { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cm-law-l { flex: 1.5 1 420px; min-width: 0; }
.cm-deadline { padding: 14px 16px; border-radius: 14px; background: #fff4e5; border: 1px solid #f5c98a; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; font-size: 14px; line-height: 1.6; color: #6b4a14; }
.cm-deadline svg { flex: none; margin-top: 2px; }
.cm-deadline strong:first-child { color: var(--t-navy); }
.cm-law-r { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--cm-line); font-size: 14px; line-height: 1.6; color: var(--t-text-2); }
.cm-law-r strong { color: var(--t-navy); }
.cm-law-r .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--t-mint-bg); color: var(--t-teal); display: flex; align-items: center; justify-content: center; }
.cm-law-r.warn .ic { background: var(--cm-warn-bg); color: var(--cm-warn); }
.cm-law-r2 { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cm-pause { border-radius: 16px; border: 1px solid var(--cm-line2); overflow: hidden; }
.cm-pause-h { padding: 12px 14px; background: #f7fafb; }
.cm-pause-h b { display: block; font-weight: 600; font-size: 15px; }
.cm-pause-h small { font-size: 12px; color: var(--t-muted); }
.cm-pause-g > div { display: flex; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--cm-line); font-size: 14px; }
.cm-pause-g span { color: var(--t-text-2); }
.cm-goal { padding: 14px 16px; border-radius: 16px; background: var(--t-dark); color: #fff; }
.cm-goal span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7fe0bd; margin-bottom: 6px; }
.cm-goal p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--t-hero-text); }

/* ---------- Giải thưởng ---------- */
.cm-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 10px; }
.cm-prize { padding: 16px; border-radius: 16px; border: 1px solid var(--cm-line2); }
.cm-prize-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-teal); margin-bottom: 10px; }
.cm-prize.ind .cm-prize-t { color: var(--t-navy); }
.cm-prize.fine .cm-prize-t { color: var(--cm-warn); }
.cm-prize-r { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--cm-line); font-size: 14px; }
.cm-prize-r strong { font-family: var(--t-display); font-size: 18px; white-space: nowrap; }

/* ---------- Áo CLB (BTC) ---------- */
.cm-shirts { display: flex; flex-direction: column; gap: 14px; }
.cm-shirt { border: 1px solid var(--cm-line2); border-radius: 16px; overflow: hidden; }
.cm-shirt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #f7fafb; font-size: 14px; }
.cm-shirt-h span { color: var(--t-muted); }
.cm .cm-btn-sm { min-height: 32px; padding: 0 16px; border: none; border-radius: 999px; background: var(--t-teal); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.cm-shirt-tools { display: flex; gap: 16px; padding: 8px 14px; border-bottom: 1px solid var(--cm-line); }
.cm-shirt-tools button { border: none; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--t-teal); cursor: pointer; }
.cm-shirt-tools button.mute { color: var(--t-muted); }
.cm-shirt-list label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--cm-line); font-size: 14px; cursor: pointer; }
.cm-shirt-list label.on { background: #f0faf5; }
.cm-shirt-list label > span { display: flex; align-items: center; gap: 10px; }
.cm-shirt-list input { width: 16px; height: 16px; accent-color: var(--t-teal); }
.cm-shirt-list em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef3f6; color: var(--t-muted); white-space: nowrap; }
.cm-shirt-list em.y { background: var(--t-mint-bg); color: var(--t-teal); }

/* ---------- Popup chi tiết VĐV ---------- */
.cm-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cm-modal-veil { position: absolute; inset: 0; background: rgba(14, 36, 60, .5); }
.cm-modal-box { position: relative; width: 100%; max-width: 680px; max-height: 88vh; background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(14, 36, 60, .3); display: flex; flex-direction: column; overflow: hidden; }
.cm-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--t-line); flex: none; }
.cm-modal-h b { font-family: var(--t-display); font-size: 20px; font-weight: 700; }
.cm-modal-h .t-x { width: 40px; height: 40px; border: none; border-radius: 12px; background: #eef3f6; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cm-modal-b { padding: 16px 20px 20px; overflow-y: auto; font-family: var(--t-font); }
.cm-modal-b h3 { font-family: var(--t-font) !important; }

/* ==========================================================================
   DI ĐỘNG (≤ 860px) — theo bản Mobile
   ========================================================================== */
@media (max-width: 860px) {
    .cm-hide-s { display: none !important; }
    .cm-show-s { display: revert !important; }
    span.cm-show-s, small.cm-show-s { display: inline !important; }
    .cm-av.cm-show-s, .cm-pot-bars.cm-show-s, .cm-tabs.cm-show-s, .cm-pot-tools.cm-show-s, .cm-pot-nav.cm-show-s, .cm-pot-q { display: flex !important; }

    .cm-hero-body { padding: 72px 16px 22px; }
    .cm-hero-bg > div { background-position: 70% 30%; opacity: .25; }
    .cm-hero-top { gap: 8px; }
    .cm .cm-hbtn { padding: 0 10px; }
    .cm-hero-grid { margin-top: 14px; gap: 14px; flex-direction: column; }
    .cm-hero-main { flex: none; gap: 14px; }
    .cm-st { font-size: 12px; padding: 4px 11px; }
    .cm-chip { font-size: 11px; padding: 4px 10px; }
    .cm .cm-h1 { font-size: 40px; }
    .cm .cm-h1 .t-grad-text { padding-right: 2px; }
    .cm-lead { display: none; }
    .cm-dates { font-size: 13px; }
    .cm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .cm-stats > div { padding: 10px 8px; border-radius: 12px; }
    .cm-stats b { font-size: 22px; }
    .cm-stats > div > span { font-size: 10px; }

    .cm-me { flex: none; border-radius: 18px; padding: 14px; gap: 12px; }
    .cm-me-head { display: none; }
    .cm-podium .cm-me-head { display: flex; }
    .cm-me-who { gap: 12px; }
    .cm .cm-me-av { width: 46px; height: 46px; font-size: 15px; }
    .cm-me-id .cm-me-lbl { font-size: 10px; }
    .cm-me-n { font-size: 16px; }
    .cm-me-s { font-size: 11px; }
    .cm-me-badge { font-size: 11px; padding: 4px 9px; flex: none; }
    .cm-me-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .cm-me-grid > div { padding: 8px; border-radius: 10px; }
    .cm-me-grid > div > span { font-size: 10px; }
    .cm-me-grid b { font-size: 22px; }
    .cm-me-grid b small { font-size: 12px; }
    .cm-me-ph { gap: 6px; font-size: 12px; flex-wrap: nowrap; }
    .cm-me-ph span { padding: 7px 8px; border-radius: 9px; }
    .cm-me-ph span.w { flex: 1.2; }
    .cm-pod-row { padding: 8px 10px; gap: 10px; }

    .cm-anchors { display: none; }
    .cm-mnav { display: flex; position: sticky; top: var(--t-hdr, 60px); transition: top .3s ease; z-index: 30; gap: 6px; overflow-x: auto; padding: 10px 16px; background: rgba(243, 248, 247, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--cm-line2); scrollbar-width: none; }
    .cm-mnav::-webkit-scrollbar { display: none; }
    .cm .cm-mnav a { flex: none; display: flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--cm-in); font-size: 13px; font-weight: 600; white-space: nowrap; box-sizing: border-box; }
    .cm .cm-mnav a.on { background: var(--t-mint-bg); border-color: #9fd9c4; color: var(--t-teal); }
    .cm-flash-wrap { padding: 0 16px; }

    .cm-main { padding: 16px 16px 28px; gap: 16px; }
    .cm-card { border-radius: 20px; padding: 16px; box-shadow: 0 6px 20px rgba(19, 48, 90, .07); scroll-margin-top: 120px; }
    .cm .cm-h2 { font-size: 24px; line-height: 1; }
    .cm-sec-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 12px; }
    .cm-sec-sub { font-size: 12px; }
    .cm-foot-note { font-size: 11px; line-height: 1.55; margin-top: 12px; }
    .cm-foot-note.lg { font-size: 12px; }

    /* BXH đội → thẻ */
    .cm-tscroll { overflow: visible; margin: 0; padding: 0; }
    .cm-tbl { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
    .cm-thead { display: none; }
    .cm-trow { border: 1px solid var(--t-line); border-radius: 14px; overflow: hidden; }
    .cm-trow[open] { background: var(--t-soft); }
    .cm-trow > summary { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 0; }
    .cm-trow > summary:hover, .cm-trow[open] > summary { background: none; }
    .cm-trow > summary > .r:not(.cm-ttot) { display: none; }
    .cm-trk .cm-rk { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }
    .cm-tname { flex: 1; }
    .cm-tname-1 { font-weight: 700; gap: 6px; }
    .cm-tag { font-size: 9px; padding: 2px 6px; }
    .cm-tsub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--t-muted); white-space: nowrap; }
    .cm-tsub b { color: var(--t-text-2); }
    .cm-tsub b.g { color: var(--t-teal); }
    .cm-tsub i { width: 3px; height: 3px; border-radius: 50%; background: #c6d5dc; }
    .cm-ttot { font-size: 24px; line-height: 1; }
    .cm-ttot small { display: block; font-family: var(--t-font); font-weight: 400; font-size: 10px; color: var(--t-muted); white-space: nowrap; margin-top: 2px; }
    .cm-chev svg { width: 14px; height: 14px; }
    .cm-tdetail { padding: 0 12px 12px; display: block; }
    .cm-tmem-h { display: flex; justify-content: space-between; font-size: 10px; border-top: 1px solid var(--t-line); }
    .cm-tmem-h span.r:first-of-type::after { content: ' · Cá nhân'; }
    .cm-tmem-h span.r:last-child { display: none; }
    .cm-tmem-r { grid-template-columns: minmax(0, 1fr) 34px 34px; border-top: none; padding: 6px 4px; font-size: 13px; border-radius: 8px; }
    .cm-tmem-r .r.c2 { font-size: 12px; color: var(--t-muted); }
    .cm-tmem-n .nk { display: none; }
    .cm-tie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
    .cm-tie-h { display: none; }
    .cm-tie > div:not(.cm-tie-h) { padding: 8px 10px; border-radius: 10px; background: #fff; }
    .cm-trow:not([open]) .cm-tie > div:not(.cm-tie-h) { background: var(--t-soft); }
    .cm-tie b { font-size: 18px; line-height: 1.1; }
    .cm-tie span { font-size: 10px; }

    /* BXH cá nhân */
    .cm-row { flex-direction: column; gap: 16px; align-items: stretch; }
    .cm-ind, .cm-top { flex: none; min-width: 0; }
    .cm-search { min-height: 44px; padding: 0 14px; font-size: 14px; margin-bottom: 8px; }
    .cm .cm-ind-r { grid-template-columns: auto minmax(0, 1fr) auto; padding: 9px 6px; }
    .cm-ind-rk { min-width: 34px; flex-direction: column; align-items: flex-start; }
    .cm-ind-rk .cm-dl { margin: 1px 0 0; font-size: 10px; }
    .cm-rk.sm { width: 28px; }
    .cm-team-chip { display: none; }
    .cm-av { width: 30px; height: 30px; }
    .cm .cm-more { width: 100%; min-height: 46px; font-size: 14px; }

    /* Top: tab Nam / Nữ */
    .cm-top .cm-sec-head { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .cm-topg-t { display: none; }
    .cm-topg + .cm-topg { margin-top: 0; }
    .cm-top[data-tg="m"] .cm-topg-f, .cm-top[data-tg="f"] .cm-topg-m { display: none; }
    .cm .cm-top-r { grid-template-columns: 30px minmax(0, 1fr) auto 40px; gap: 10px; padding: 10px 6px; }
    .cm-top-n .nm { font-weight: 600; }
    .cm-top-km { font-size: 11px; }
    .cm-top-r strong { font-size: 19px; }

    /* Mục thu gọn */
    .cm .cm-fold-btn { gap: 12px; min-height: 44px; }
    .cm-fold-t { flex-direction: column; align-items: flex-start; gap: 4px; }
    .cm-fold-t .cm-sec-sub { white-space: normal; }
    .cm-fold-act .l-o, .cm-fold.open .cm-fold-act .l-o, .cm-fold-act .l-c { display: none; }
    .cm-fold-ic { width: 36px; height: 36px; }
    .cm-fold-body { margin-top: 14px; }

    /* Chuồng: trượt ngang */
    .cm-pot-tools { flex-direction: column; gap: 12px; margin-bottom: 12px; }
    .cm-pot-q { position: relative; align-items: center; }
    .cm-pot-q svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
    .cm-pot-q input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 14px 0 36px; border-radius: 12px; border: 1px solid var(--cm-in); background: #f7fafb; font-size: 14px; color: var(--t-navy); outline: none; }
    .cm-pot-chips { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .cm-pot-chips button { flex: 1 0 auto; min-width: 40px; min-height: 40px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--cm-in); background: #fff; color: var(--t-navy); font-family: var(--t-display); font-weight: 700; font-size: 16px; cursor: pointer; position: relative; }
    .cm-pot-chips button.on { background: var(--t-grad-btn); color: #fff; border-color: transparent; }
    .cm-pot-chips button i { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--t-green); border: 2px solid #fff; box-sizing: border-box; }
    .cm-pots { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; touch-action: pan-x pan-y; }
    .cm-pots::-webkit-scrollbar { display: none; }
    .cm-pots.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
    .cm-pot { flex: none; width: calc(100% - 44px); scroll-snap-align: start; border: 1px solid var(--t-line); }
    .cm-pot.cur { border-color: #9fd9c4; }
    .cm-pot-h { padding: 12px 14px; }
    .cm-pot-t { font-size: 22px; }
    .cm-pot-l { margin-top: 2px; }
    .cm-pot-bars { gap: 3px; align-items: flex-end; height: 22px; }
    .cm-pot-bars span { width: 4px; border-radius: 2px; display: block; }
    .cm-pot-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px; }
    .cm-pot-p { padding: 6px; background: #fff; line-height: 1.25; }
    .cm-pot-p.me { background: var(--cm-me); }
    .cm-pot-p small, .cm-pot-p em { display: none; }
    .cm-pot-nav { align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
    .cm-pot-nav > button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cm-in); background: #fff; color: var(--t-navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .cm-pot-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--t-muted); }
    .cm-pot-dots { display: flex; gap: 5px; }
    .cm-pot-dots span { height: 6px; width: 6px; border-radius: 3px; background: #c6d5dc; transition: width .2s; }
    .cm-pot-dots span.on { width: 18px; background: var(--t-teal); }

    /* Cách tính điểm */
    .cm-calc-wrap { gap: 18px; }
    .cm-formula { display: flex; flex-direction: column; gap: 8px; }
    .cm-fm { padding: 14px; border-radius: 14px; gap: 8px; }
    .cm-fm-k { font-size: 10px; }
    .cm-fm-eq { font-size: 18px; gap: 6px; }
    .cm-fm-eq span { padding: 4px 10px; border-radius: 8px; }
    .cm-box { padding: 0; border: none; border-radius: 0; background: none; }
    .cm-step { gap: 10px; margin-bottom: 12px; }
    .cm-step > span { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
    .cm-step-t { font-size: 16px; }
    .cm-step-d { font-size: 12px; margin-top: 2px; }
    .cm-sched { flex-direction: column; gap: 8px; }
    .cm-phase { flex: none !important; padding: 10px; }
    .cm-phase-h { margin-bottom: 8px; flex-wrap: nowrap; }
    .cm-phase-h b { font-size: 16px; }
    .cm-phase-h em { font-size: 10px; padding: 3px 8px; }
    .cm-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
    .cm-day { padding: 8px 0; border-radius: 10px; gap: 1px; }
    .cm-day > span { font-size: 9px; }
    .cm-day b { font-size: 19px; }
    .cm-day i { width: 4px; height: 4px; }
    .cm-day small { font-size: 8px; letter-spacing: 0; }
    .cm-day.long { box-shadow: none; }
    .cm-legend { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; padding-top: 0; border-top: none; }
    .cm-legend .sw { width: 16px; height: 16px; border-radius: 5px; margin-top: 2px; }
    .cm-legend b { font-size: 13px; }
    .cm-legend small { font-size: 12px; }
    .cm-two { flex-direction: column; gap: 18px; align-items: stretch; }
    .cm-pts { flex: none; }
    .cm-pt { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; }
    .cm-pt .w { display: none; }
    .cm-pt small { font-size: 11px; }
    .cm-pt .v { font-size: 17px; }
    .cm-pt-g { font-size: 10px; padding: 8px 0 2px; }
    .cm-calc { flex: none; position: static; padding: 14px; border-radius: 16px; border: 1.5px dashed #9fd9c4; background: #fafdfc; }
    .cm-calc-h { margin-bottom: 10px; }
    .cm-calc-h > span { font-size: 11px; }
    .cm-seg button { min-height: 30px; }
    .cm-calc-in { margin-bottom: 8px; }
    .cm-calc-in input { min-height: 44px; }
    .cm-cs { font-size: 12px; padding: 6px 0; }
    .cm-calc-out b { font-size: 28px; }
    .cm-calc-out span { font-size: 10px; }
    .cm-rules { overflow: visible; display: flex; flex-direction: column; gap: 8px; }
    .cm-rule { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--t-line); border-radius: 14px; background: #fafcfd; }
    .cm-rule .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); align-self: flex-start; }
    .cm-rule .y, .cm-rule .n { padding: 0; background: none; }
    .cm-hr-note { margin-top: 8px; padding: 10px 12px; font-size: 12px; gap: 8px; }
    .cm-hr-note > span { width: 20px; height: 20px; font-size: 12px; }
    .cm-trio { grid-template-columns: 1fr; gap: 8px; }
    .cm-tri { padding: 12px; border-radius: 14px; }
    .cm-tri > b { font-size: 14px; margin-bottom: 4px; }

    /* Luật */
    .cm-info4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
    .cm-info4 > div { padding: 10px 12px; border-radius: 12px; }
    .cm-info4 > div > span { font-size: 10px; }
    .cm-info4 b { font-size: 13px; margin-top: 3px; }
    .cm-law { flex-direction: column; gap: 14px; }
    .cm-law-l, .cm-law-r2 { flex: none; }
    .cm-deadline { padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
    .cm-deadline svg { display: none; }
    .cm-law-r { gap: 10px; padding: 10px 0; font-size: 13px; line-height: 1.55; }
    .cm-law-r .ic { width: 6px; height: 6px; border-radius: 50%; background: var(--t-teal); margin-top: 7px; }
    .cm-law-r.warn .ic { background: var(--t-gold); }
    .cm-law-r .ic svg { display: none; }
    .cm-pause { border-radius: 14px; }
    .cm-pause-h { padding: 10px 12px; }
    .cm-pause-h b { font-size: 13px; display: inline; }
    .cm-pause-h small { font-size: 13px; font-weight: 600; color: var(--t-navy); }
    .cm-pause-h small::before { content: ' ('; }
    .cm-pause-h small::after { content: ')'; }
    .cm-pause-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-pause-g > div { padding: 8px 12px; font-size: 12px; }
    .cm-pause-g > div:nth-child(even) { border-left: 1px solid var(--cm-line); }
    .cm-goal { display: none; }

    /* Giải thưởng */
    .cm-prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cm-prize { padding: 12px 14px; border-radius: 14px; }
    .cm-prize.team, .cm-prize.fine { grid-column: 1 / -1; }
    .cm-prize-t { font-size: 11px; margin-bottom: 6px; }
    .cm-prize-r { padding: 6px 0; font-size: 13px; }
    .cm-prize-r strong { font-size: 16px; }

    /* Popup: trượt từ dưới lên */
    .cm-modal { align-items: flex-end; padding: 0; }
    .cm-modal-box { max-width: none; border-radius: 22px 22px 0 0; max-height: 90vh; }
    .cm-modal-b { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
    .cm .cm-h1 { font-size: 34px; }
    .cm-stats b, .cm-me-grid b { font-size: 19px; }
    .cm-me-ph { flex-wrap: wrap; }
}
