/* ==========================================================================
   Chi tiết thử thách cá nhân (mockup «Chi Tiet Thu Thach(.Mobile).dc.html»)
   Tiền tố .ct-  ·  mốc di động 860px
   ========================================================================== */
.t-chal-show { background: var(--t-bg); color: var(--t-navy); }
.t-chal-show *, .t-chal-show *::before, .t-chal-show *::after { box-sizing: border-box; }
.ct-num { font-family: var(--t-display); font-weight: 700; }

/* ---------- Hero ---------- */
.ct-hero { position: relative; background: var(--t-dark); color: #fff; }
.ct-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.ct-hero-bg > div { position: absolute; inset: 0; background-position: 70% 40%; background-size: cover; background-repeat: no-repeat; opacity: .3; }
.ct-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%); }
.ct-hero-in { position: relative; max-width: 1280px; margin: 0 auto; padding: 128px clamp(20px, 4vw, 48px) 88px; }
.ct-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-back { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 12px; font-weight: 600; color: var(--t-hero-text) !important; }
.ct-back:hover { color: #fff !important; }
.ct-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ct-tool { display: inline-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 !important; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ct-tool:hover { background: rgba(255, 255, 255, .14); }
.ct-tool.solid { border-color: var(--t-teal); background: var(--t-teal); }
.ct-tool.solid:hover { background: #128a6e; }
.ct-hero-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; margin-top: 16px; }
.ct-hero-l { flex: 1.4 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ct-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.ct-chip.st { font-family: var(--t-display); font-weight: 700; letter-spacing: .06em; font-size: 13px; }
.ct-chip.st i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.ct-chip.live { background: var(--t-green); }
.ct-chip.soon { background: var(--t-gold); color: #3a2600; }
.ct-chip.soon i { background: #3a2600; box-shadow: 0 0 0 3px rgba(58, 38, 0, .25); }
.ct-chip.done { background: #5b7183; }
.ct-chip.must { background: rgba(245, 181, 36, .22); color: #ffd77a; }
.ct-h1 { margin: 0; font-family: var(--t-display); font-weight: 700; font-size: clamp(40px, 4.6vw, 60px); line-height: .95; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.ct-desc { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.65; color: var(--t-hero-text); }
.ct-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ct-meta span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t-hero-text); }
.ct-meta strong { color: #fff; }
.ct-meta svg { flex: none; }
.ct-cd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.ct-cd-box { display: flex; gap: 6px; }
.ct-cd-box div { min-width: 58px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.ct-cd-box b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 26px; line-height: 1; color: #fff; }
.ct-cd-box small { font-size: 10px; color: var(--t-hero-muted); }
.ct-cd > span { font-size: 13px; color: var(--t-hero-muted); }
.ct-reg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t-hero-text); }
.ct-reg strong { color: #fff; }

/* ---------- Thẻ «Của tôi» ---------- */
.ct-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; align-self: flex-start; }
.ct-me-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-me-hd > span:first-child { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7fe0bd; }
.ct-me-hd > span:last-child { font-size: 12px; color: var(--t-hero-muted); text-align: right; }
.ct-me-hd strong { color: #fff; }
.ct-me-main { display: flex; align-items: center; gap: 18px; }
.ct-ring { width: 110px; height: 110px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ct-ring > div { width: 88px; height: 88px; border-radius: 50%; background: #123247; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ct-ring b { font-family: var(--t-display); font-weight: 700; font-size: 28px; line-height: 1; }
.ct-ring small { font-size: 10px; color: var(--t-hero-muted); }
.ct-me-nums { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-me-km b { font-family: var(--t-display); font-weight: 700; font-size: 32px; line-height: 1; }
.ct-me-km span { font-size: 14px; color: var(--t-hero-muted); }
.ct-me-nums > div:not(.ct-me-km) { font-size: 13px; color: var(--t-hero-text); }
.ct-me-nums strong { color: #fff; }
.ct-me-nums strong.g { color: var(--t-mint); }
.ct-warn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 165, 36, .14); border: 1px solid rgba(245, 165, 36, .35); font-size: 12px; color: #ffe2a8; line-height: 1.5; }
.ct-warn strong { color: #fff; }
.ct-warn svg { flex: none; }
.ct-okbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(78, 227, 154, .14); border: 1px solid rgba(78, 227, 154, .35); font-size: 12px; color: #c9f5df; line-height: 1.5; }
.ct-okbox strong { color: #fff; }
.ct-streak { font-size: 12px; color: var(--t-hero-text); }
.ct-streak strong { color: #fff; }
.ct-me-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-me-btns > * { flex: 1 1 140px; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: none; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; text-align: center; line-height: 1.2; }
.ct-btn-grad { background: var(--t-grad-btn); color: #fff !important; }
.ct-btn-grad:hover { filter: brightness(1.06); }
.ct-btn-joined { background: rgba(78, 227, 154, .18); color: #7fe0bd !important; cursor: default; }
.ct-btn-ghost { border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff !important; font-size: 13px; }
.ct-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.ct-btn-gold { width: 100%; background: var(--t-gold); color: #fff !important; }
.ct-btn-gold:hover { background: #e6951a; }
.ct-btn-mute { width: 100%; background: rgba(255, 255, 255, .1); color: var(--t-hero-text) !important; cursor: default; }
.ct-me-note { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.55; color: var(--t-hero-text); }
.ct-me-note strong { color: #fff; }
.ct-me-note.warn { background: rgba(245, 165, 36, .14); border: 1px solid rgba(245, 165, 36, .35); color: #ffe2a8; }
.ct-me select { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .95); color: var(--t-navy); font-size: 14px; font-family: inherit; }
.ct-me label { display: block; font-size: 12px; font-weight: 600; color: var(--t-hero-text); margin-bottom: 6px; }
.ct-me-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.ct-me-foot form { margin: 0; }
.ct-link { border: none; background: none; padding: 4px 0; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--t-hero-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ct-link:hover { color: #fff; }
.ct-link.red:hover { color: #ff9b9b; }

/* ---------- Thân trang ---------- */
.ct-body { max-width: 1376px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) 80px; display: flex; flex-direction: column; gap: 28px; }
.ct-flash { margin-top: -52px; position: relative; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.ct-flash .t-flash { margin: 0; max-width: none; }
.ct-flash + .ct-stats { margin-top: 0; }
.ct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; margin-top: -52px; position: relative; z-index: 2; }
.ct-stat { padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(19, 48, 90, .1); min-width: 0; }
.ct-stat > div:first-child { font-size: 12px; color: var(--t-muted); }
.ct-stat b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 32px; line-height: 1.1; white-space: nowrap; }
.ct-stat b small { font-size: 16px; color: var(--t-muted); font-weight: 600; }
.ct-stat > div:last-child { font-size: 11px; color: var(--t-muted-2); }
.ct-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ct-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ct-side { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: 20px; }
/* Cột phải không có khối nào (giải chia cự ly ẩn Top 3 / tiến độ / quy định) thì bỏ hẳn, cột chính trải đủ bề ngang */
.ct-grid > .ct-side:not(:has(> *)) { display: none !important; }
.ct-ch-toi { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; border-radius: 14px; background: var(--t-mint-bg); font-size: 13px; color: var(--t-navy); }
.ct-ch-nut { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--t-teal); color: #fff !important; font-weight: 600; font-size: 13px; }
body.thr .t-page .ct-ch-nut:hover { color: #fff; filter: brightness(1.08); }
.ct-ch-chua a { font-weight: 600; text-decoration: underline; }
.ct-card { background: #fff; border-radius: 22px; box-shadow: var(--t-shadow); }
.ct-pad { padding: 18px 20px; }
.ct-h2 { margin: 0; font-family: var(--t-display); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; }
.ct-side .ct-h2 { font-size: 22px; }
.ct-sub { font-size: 12px; color: var(--t-muted); margin-top: 4px; }

/* ---------- Bảng xếp hạng ---------- */
.ct-bxh { overflow: hidden; }
.ct-bxh-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--t-line); }
.ct-bxh-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ct-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #eef3f6; }
.ct-seg button { min-height: 32px; padding: 0 14px; border: none; border-radius: 999px; background: transparent; color: var(--t-text-2); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ct-seg button.on { background: var(--t-grad-btn); color: #fff; }
.ct-sel, .ct-q { min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid #d3e0e6; background: #f7fafb; font-size: 13px; font-weight: 600; color: var(--t-navy); font-family: inherit; }
.ct-q { width: 150px; font-weight: 400; padding: 0 12px; }
.ct-sel:focus, .ct-q:focus { outline: none; border-color: var(--t-teal); }
.ct-cols, .ct-row { display: grid; grid-template-columns: 52px minmax(0, 1.5fr) 64px 70px 84px minmax(130px, 1fr); gap: 10px; align-items: center; padding: 10px 20px; }
.ct-adm .ct-cols, .ct-adm .ct-row { grid-template-columns: 52px minmax(0, 1.5fr) 64px 70px 84px minmax(130px, 1fr) 64px; }
.ct-cols { background: #f7fafb; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.ct-cols .c, .ct-row .c { text-align: center; }
.ct-cols .r, .ct-row .r { text-align: right; }
.ct-row { padding: 11px 20px; border-bottom: 1px solid #f1f5f7; background: #fff; cursor: pointer; }
.ct-row:nth-child(even of .ct-row:not([hidden])) { background: #fafcfd; }
.ct-row:hover { background: #eef7f4 !important; }
.ct-row.me { background: #e6f4ef !important; }
.ct-rank { display: flex; align-items: center; }
.ct-rank .n { width: 34px; 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; }
.ct-rank img, .ct-top3 img.md { width: 30px; height: 30px; object-fit: contain; flex: none; display: block; }
.ct-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ct-av { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; overflow: hidden; }
.ct-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-av.s { width: 32px; height: 32px; font-size: 11px; }
.ct-av.l { width: 56px; height: 56px; font-size: 18px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.ct-who-t { min-width: 0; }
.ct-who-n { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ct-who-n > span:first-child { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-tag { flex: none; font-size: 10px; font-weight: 700; color: #fff; background: var(--t-teal); padding: 2px 7px; border-radius: 999px; }
.ct-tag.ok { background: var(--t-green); }
.ct-fire { flex: none; font-size: 11px; font-weight: 700; color: var(--t-teal); white-space: nowrap; }
.ct-who-g { font-size: 11px; font-weight: 600; color: var(--t-navy-2); }
.ct-who-g.f { color: #c9733a; }
.ct-who-g.u { color: var(--t-muted-2); }
.ct-who-g em { font-style: normal; font-weight: 500; color: var(--t-muted); }
.ct-row .runs { font-weight: 600; color: var(--t-text-2); }
.ct-row .pace { color: var(--t-text-2); font-size: 14px; }
.ct-row .km b { font-family: var(--t-display); font-weight: 700; font-size: 21px; }
.ct-row .km small { font-size: 11px; color: var(--t-muted); margin-left: 3px; }
.ct-prog { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ct-bar { position: relative; flex: 1; height: 8px; border-radius: 999px; background: #e6f1ef; overflow: hidden; }
.ct-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #17987a, #13305a); }
.ct-bar > div.ok { background: var(--t-green); }
.ct-prog b { width: 46px; text-align: right; font-family: var(--t-display); font-weight: 700; font-size: 18px; color: var(--t-text-2); }
.ct-prog b.mid { color: var(--t-teal); }
.ct-prog b.ok { color: var(--t-green); }
.ct-m-only { display: none; }
.ct-act { display: flex; gap: 2px; justify-content: flex-end; }
.ct-act form { margin: 0; }
.ct-act button { width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--t-muted-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ct-act button:hover { background: var(--t-mint-bg); color: var(--t-teal); }
.ct-act button.del:hover { background: #fdecec; color: var(--t-red); }
.ct-act svg { width: 16px; height: 16px; }
.ct-none { padding: 40px 20px; text-align: center; color: var(--t-muted); font-size: 14px; }
.ct-zero-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border: none; border-top: 1px dashed #d3e0e6; background: #fafcfd; cursor: pointer; font-family: inherit; color: var(--t-text-2); font-size: 14px; font-weight: 600; text-align: left; }
.ct-zero-btn strong { color: var(--t-navy); }
.ct-zero-btn > span:last-child { color: var(--t-teal); white-space: nowrap; }
.ct-zero-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 20px 18px; background: #fafcfd; }
.ct-zero-list button { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e1eaee; color: var(--t-text-2); cursor: pointer; font-family: inherit; }
.ct-zero-list button:hover { border-color: var(--t-teal); color: var(--t-teal); }
.ct-zero-list button.me { border-color: var(--t-teal); background: #e6f4ef; }

/* ---------- Đội ---------- */
.ct-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; padding: 0 20px 20px; }
.ct-team { text-align: left; border: 1px solid #e1eaee; border-left-width: 4px; border-radius: 14px; padding: 14px; background: #fff; cursor: pointer; font-family: inherit; color: var(--t-navy); }
.ct-team:hover { box-shadow: var(--t-shadow); }
.ct-team-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-team-hd b { font-weight: 700; font-size: 15px; }
.ct-team-hd span { font-size: 12px; color: var(--t-muted); }
.ct-team-km { font-family: var(--t-display); font-weight: 700; font-size: 24px; margin-top: 6px; }
.ct-team-km small { font-family: var(--t-font); font-size: 12px; font-weight: 500; color: var(--t-muted); margin-left: 6px; }
.ct-team .ct-bar { margin-top: 6px; height: 6px; }
.ct-team-st { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--t-line); font-size: 12px; color: var(--t-muted); }

/* ---------- Top 3 / Phân bổ / Quy định / Tài trợ ---------- */
.ct-top3-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ct-top3-hd .ct-seg { gap: 3px; padding: 3px; }
.ct-top3-hd .ct-seg button { min-height: 28px; font-size: 12px; }
.ct-top3 { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f1f5f7; }
.ct-top3 .nm { flex: 1; min-width: 0; }
.ct-top3 .nm div:first-child { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-top3 .nm div:last-child { font-size: 11px; color: var(--t-muted); }
.ct-top3 .k { white-space: nowrap; }
.ct-top3 .k b { font-family: var(--t-display); font-size: 19px; }
.ct-top3 .k small { font-size: 11px; color: var(--t-muted); margin-left: 2px; }
.ct-top3 .rn { width: 30px; display: flex; justify-content: center; font-family: var(--t-display); font-weight: 700; color: var(--t-muted-2); }
.ct-note { font-size: 11px; color: var(--t-muted-2); margin-top: 6px; line-height: 1.5; }
.ct-note a { color: var(--t-teal); text-decoration: underline; }
.ct-dist { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ct-dist > div { display: grid; grid-template-columns: 76px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13px; }
.ct-dist span { color: var(--t-text-2); }
.ct-dist .tr { height: 12px; border-radius: 6px; background: #f1f5f7; overflow: hidden; }
.ct-dist .tr > div { height: 100%; border-radius: 6px; }
.ct-dist strong { text-align: right; }
.ct-rules { display: flex; flex-direction: column; gap: 10px; }
.ct-rules .ct-h2 { margin-bottom: 4px; }
.ct-rule { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: var(--t-soft); }
.ct-rule .ic { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--t-mint-bg); color: var(--t-teal); display: flex; align-items: center; justify-content: center; }
.ct-rule .ic svg { width: 19px; height: 19px; }
.ct-rule small { display: block; font-size: 12px; color: var(--t-muted); }
.ct-rule b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.ct-rule.fine { align-items: center; background: #fff4e5; border: 1px solid #f5c98a; }
.ct-rule.fine .ic { background: #ffe2b8; color: #b86a14; font-family: var(--t-display); font-weight: 700; font-size: 17px; }
.ct-rule.fine small { color: #b86a14; }
.ct-rules-grid { display: flex; flex-direction: column; gap: 10px; }
.ct-spons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ct-spons a { display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 14px; border: 1px solid var(--t-line); min-height: 64px; }
.ct-spons a:hover { border-color: #bfe3d6; box-shadow: var(--t-shadow); }
.ct-spons img { max-height: 40px; max-width: 100%; object-fit: contain; }

/* ---------- Thông tin BTC + Chi tiết luật ---------- */
.ct-info { padding: 22px clamp(18px, 3vw, 28px); }
.ct-info-txt { margin-top: 14px; font-size: 14px; line-height: 1.75; color: var(--t-text-2); white-space: pre-line; overflow-wrap: anywhere; }
.ct-info-txt a { color: var(--t-teal); text-decoration: underline; }
.ct-info.up { order: -1; }
.ct-law { padding: 24px clamp(18px, 3vw, 32px) 8px; }
.ct-law-btn { width: 100%; display: flex; align-items: center; gap: 14px; border: none; background: none; padding: 0 0 16px; cursor: pointer; text-align: left; font-family: inherit; color: var(--t-navy); }
.ct-law-btn .ct-h2 { font-size: 28px; flex: none; }
.ct-law-btn .sm { flex: 1; min-width: 0; font-size: 13px; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-law-btn .tg em { font-style: normal; }
.ct-law-btn .tg { display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 600; color: var(--t-teal); }
.ct-law-btn .ch { width: 32px; height: 32px; border-radius: 50%; background: #eef3f6; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.ct-law.open .ct-law-btn .ch { transform: rotate(180deg); }
.ct-law-body { padding-bottom: 8px; }
.ct-art { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--t-line); }
.ct-art > span { width: 36px; height: 36px; border-radius: 10px; background: #eef3f6; display: flex; align-items: center; justify-content: center; font-family: var(--t-display); font-weight: 700; font-size: 18px; }
.ct-art h3 { margin: 0 0 6px; font-family: var(--t-font) !important; font-size: 16px; font-weight: 700; }
.ct-art .tx { font-size: 14px; line-height: 1.7; color: var(--t-text-2); }
.ct-art .tx strong { color: var(--t-navy); }
.ct-art .tx strong.o { color: #b86a14; }
.ct-art ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; list-style: disc; }

/* ---------- Hộp thoại ---------- */
.ct-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ct-modal[hidden] { display: none; }
.ct-modal-veil { position: absolute; inset: 0; background: rgba(14, 36, 60, .5); }
.ct-dlg { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(14, 36, 60, .3); color: var(--t-navy); font-family: var(--t-font); }
.ct-dlg.wide { max-width: 640px; }
.ct-dlg-pad { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ct-dlg-grip { display: none; }
.ct-dlg-t { font-family: var(--t-display); font-weight: 700; font-size: 24px; line-height: 1; text-transform: uppercase; }
.ct-dlg-s { font-size: 12px; color: var(--t-muted); margin-top: 4px; }
.ct-dlg-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ct-x { width: 36px; height: 36px; flex: none; border: none; border-radius: 50%; background: #eef3f6; color: var(--t-text-2); font-size: 18px; cursor: pointer; line-height: 1; }
.ct-dlg label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--t-muted); }
.ct-dlg input.f, .ct-dlg select.f, .ct-dlg textarea.f { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #d3e0e6; font-size: 15px; color: var(--t-navy); font-family: inherit; background: #fff; width: 100%; }
.ct-dlg textarea.f { padding: 10px 12px; min-height: 80px; resize: vertical; }
.ct-dlg-btns { display: flex; gap: 10px; justify-content: flex-end; }
.ct-b2 { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid #d3e0e6; background: #fff; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--t-navy); font-size: 14px; }
.ct-b1 { min-height: 42px; padding: 0 22px; border: none; border-radius: 999px; background: var(--t-grad-btn); color: #fff; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14px; }
.ct-b1:disabled { background: #e1eaee; color: var(--t-muted-2); cursor: default; }
.ct-b1.red { background: var(--t-red); }
.ct-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; background: var(--t-soft); }
.ct-trio > div { padding: 10px 12px; min-width: 0; }
.ct-trio > div + div { border-left: 1px solid #e1eaee; }
.ct-trio small { display: block; font-size: 10px; color: var(--t-muted); }
.ct-trio b { font-family: var(--t-display); font-weight: 700; font-size: 20px; }
.ct-trio b.t { color: var(--t-teal); }
.ct-trio b.o { color: #b86a14; }
.ct-goal-lbl { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.ct-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-presets button { flex: 1 1 80px; min-height: 44px; border-radius: 12px; border: 1px solid #d3e0e6; background: #fff; color: var(--t-navy); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ct-presets button.on { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
.ct-goal-msg { font-size: 12px; color: var(--t-muted); margin-top: 8px; }
.ct-after { padding: 12px 14px; border-radius: 14px; border: 1px solid #bfe3d6; background: #f4fbf8; }
.ct-after > div:first-child { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-teal); margin-bottom: 8px; }
.ct-after .g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ct-after small { display: block; font-size: 10px; color: var(--t-muted); }
.ct-after b { font-family: var(--t-display); font-weight: 700; font-size: 19px; }
.ct-after b.o { color: #b86a14; }

/* Hộp VĐV */
.ct-ath-hd { padding: 20px; background: var(--t-dark); color: #fff; display: flex; align-items: center; gap: 14px; }
.ct-ath-hd .nm { flex: 1; min-width: 0; }
.ct-ath-hd .nm div:first-child { font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
.ct-ath-hd .nm div:last-child { font-size: 12px; color: var(--t-hero-muted); }
.ct-ath-hd .ct-x { background: rgba(255, 255, 255, .12); color: #fff; border-radius: 10px; }
.ct-ath-b { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ct-ath-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ct-ath-3 > div { padding: 10px; border-radius: 12px; background: var(--t-soft); min-width: 0; }
.ct-ath-3 small { display: block; font-size: 11px; color: var(--t-muted); }
.ct-ath-3 b { font-family: var(--t-display); font-weight: 700; font-size: 22px; white-space: nowrap; }
.ct-ath-p > div:first-child { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.ct-ath-p > div:first-child span { color: var(--t-text-2); }
.ct-ath-p > div:first-child strong { color: var(--t-teal); }
.ct-ath-p .ct-bar { height: 10px; }
.ct-ath-p > div:last-child { font-size: 12px; color: var(--t-muted); margin-top: 6px; }
.ct-acts-t { font-family: var(--t-display); font-weight: 700; font-size: 20px; text-transform: uppercase; padding-top: 4px; border-top: 1px solid var(--t-line); padding-top: 14px; }
.ct-acts { font-size: 14px; }
.ct-load { padding: 28px 0; text-align: center; color: var(--t-muted-2); }
.ct-wk { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.ct-wk:first-child { margin-top: 0; }
.ct-wk i { flex: 1; height: 1px; background: #e2e8f0; }
.ct-wk span { font-size: 11px; font-weight: 700; color: var(--t-muted); text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; background: #f1f5f7; border-radius: 999px; white-space: nowrap; }
.ct-wk span.cur { background: var(--t-mint-bg); color: var(--t-teal); }
.ct-wk-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; background: var(--t-soft); border-radius: 12px; margin-bottom: 10px; text-align: center; }
.ct-wk-sum b { display: block; font-family: var(--t-display); font-size: 18px; }
.ct-wk-sum small { font-size: 10px; color: var(--t-muted-2); text-transform: uppercase; }
.ct-ai { display: flex; gap: 12px; padding: 12px; border: 1px solid #e5edf1; border-radius: 14px; margin-bottom: 8px; }
.ct-ai.bad { background: #fff6f6; border-color: #f6d0d0; }
.ct-ai.past { opacity: .6; }
.ct-ai-d { flex: none; width: 44px; text-align: center; }
.ct-ai-d b { display: block; font-family: var(--t-display); font-size: 24px; line-height: 1; }
.ct-ai-d small { font-size: 10px; color: var(--t-muted-2); text-transform: uppercase; }
.ct-ai-m { flex: 1; min-width: 0; }
.ct-ai-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-ai-s { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--t-muted); margin-top: 2px; }
.ct-ai-n { margin-top: 6px; font-size: 12px; padding: 4px 8px; border-radius: 8px; background: #fff7e0; color: #946200; }
.ct-ai-n.adm { background: var(--t-soft); color: var(--t-text-2); }
.ct-badge { flex: none; align-self: center; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ct-badge.ok { background: #d9f5e7; color: #138a52; }
.ct-badge.no { background: #fde4e4; color: #c23434; }
.ct-badge.out { background: #eef2f4; color: var(--t-muted); }
.ct-tsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.ct-tsum > div { background: var(--t-soft); border-radius: 10px; padding: 8px 4px; }
.ct-tsum small { display: block; font-size: 11px; color: var(--t-muted); }
.ct-tsum b { font-size: 14px; }
.ct-tsum-2 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--t-muted); margin-top: 8px; }
.ct-tm { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 12px; margin-bottom: 6px; }
.ct-tm small { display: block; font-size: 12px; color: var(--t-muted); }
.ct-tm .r { text-align: right; white-space: nowrap; }

/* ==========================================================================
   Di động (mockup Mobile, 390px)
   ========================================================================== */
@media (max-width: 860px) {
    .ct-hero-in { padding: 72px 16px 64px; }
    .ct-hero-row { margin-top: 14px; gap: 14px; }
    .ct-hero-l { flex-basis: 100%; gap: 14px; }
    .ct-chip { font-size: 11px; padding: 4px 10px; }
    .ct-chip.st { font-size: 12px; padding: 4px 11px; }
    .ct-chip.st i { width: 6px; height: 6px; box-shadow: none; }
    .ct-h1 { font-size: 42px; line-height: .92; }
    .ct-desc { font-size: 13px; line-height: 1.6; }
    .ct-meta { gap: 6px 14px; }
    .ct-meta span { font-size: 13px; gap: 6px; }
    .ct-meta svg { width: 14px; height: 14px; }
    .ct-cd { display: none; }
    .ct-me { flex-basis: 100%; border-radius: 20px; padding: 16px; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .ct-me-hd > span:first-child { font-size: 10px; }
    .ct-ring { width: 96px; height: 96px; }
    .ct-ring > div { width: 76px; height: 76px; }
    .ct-ring b { font-size: 26px; }
    .ct-ring small { font-size: 9px; }
    .ct-me-main { gap: 16px; }
    .ct-me-km b { font-size: 30px; }
    .ct-me-km span { font-size: 13px; }
    .ct-me-nums > div:not(.ct-me-km) { font-size: 12px; }
    .ct-me-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ct-me-btns > :only-child { grid-column: 1 / -1; }
    .ct-btn { min-height: 46px; }

    .ct-body { padding: 0 16px 28px; gap: 16px; }
    .ct-flash { margin-top: -44px; }
    .ct-stats { margin-top: -44px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ct-stat { padding: 12px 14px; border-radius: 16px; }
    .ct-stat > div:first-child { font-size: 11px; }
    .ct-stat b { font-size: 26px; }
    .ct-stat b small { font-size: 14px; }
    .ct-stat > div:last-child { display: none; }
    .ct-grid { gap: 16px; flex-direction: column; align-items: stretch; }
    .ct-main, .ct-side { flex: none; width: 100%; min-width: 0; gap: 16px; }
    /* min-width:0 + max-width:100%: bảng BXH (thêm cột admin, tên dài) không được kéo mọi khối rộng hơn màn hình */
    .ct-card { min-width: 0; max-width: 100%; box-sizing: border-box; border-radius: 20px; box-shadow: 0 6px 20px rgba(19, 48, 90, .07); }
    .ct-body > * { min-width: 0; max-width: 100%; }
    .ct-pad { padding: 16px; }
    .ct-h2, .ct-side .ct-h2 { font-size: 24px; }

    .ct-bxh-hd { display: block; padding: 16px 16px 6px; border-bottom: none; }
    .ct-bxh-hd > div:first-child { margin-bottom: 12px; }
    .ct-bxh-tools { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 8px; }
    .ct-bxh-tools .ct-seg { grid-column: 1 / -1; order: -2; }
    .ct-bxh-tools .ct-seg button { flex: 1; min-height: 40px; }
    .ct-q { order: -1; width: 100%; min-width: 0; min-height: 44px; font-size: 14px; }
    .ct-sel { min-height: 44px; padding: 0 8px; }
    .ct-cols { display: none; }
    .ct-row, .ct-adm .ct-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: none; border-top: 1px solid #f1f5f7; }
    .ct-row:nth-child(even of .ct-row:not([hidden])) { background: #fff; }
    .ct-rank { width: 30px; flex: none; justify-content: center; }
    .ct-rank .n { width: 28px; height: 26px; font-size: 15px; }
    .ct-who { flex: 1; min-width: 0; overflow: hidden; }
    .ct-who-t { min-width: 0; }
    .ct-who-n { overflow: hidden; }
    /* Tên dài xuống 2 dòng thay vì cắt «…» */
    .ct-who-n > span:first-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; word-break: break-word; }
    .ct-row.ct-cut { display: none !important; }
    .ct-more { display: block; width: calc(100% - 32px); margin: 10px 16px 4px; min-height: 44px; border: 1.5px solid var(--t-line); border-radius: 999px; background: #fff; color: var(--t-teal); font-size: 14px; font-weight: 700; cursor: pointer; }
    .ct-more[hidden] { display: none; }
    .ct-act { opacity: .55; }
    .ct-who .ct-av { width: 34px; height: 34px; font-size: 12px; }
    .ct-who-t { flex: 1; }
    .ct-who-g, .ct-row .tag-ok { display: none; }
    .ct-row .runs, .ct-row .pace, .ct-row .ct-prog { display: none; }
    .ct-m-only { display: block; }
    .ct-mbar { height: 5px; margin-top: 7px; border-radius: 999px; background: #e6f1ef; overflow: hidden; }
    .ct-mbar > div { height: 100%; min-width: 3px; border-radius: 999px; background: #e5534b; }
    .ct-mbar > div.mid { background: var(--t-gold); }
    .ct-mbar > div.ok { background: var(--t-green); }
    .ct-row .km { flex: none; width: 66px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
    .ct-row .km b { font-size: 20px; line-height: 1; }
    .ct-row .km small { font-size: 10px; }
    .ct-row .km .mp { font-size: 11px; color: var(--t-muted); white-space: nowrap; }
    .ct-act { flex: none; flex-direction: column; }
    .ct-act button { width: 28px; height: 28px; }
    .ct-zero-btn { min-height: 52px; padding: 0 16px; font-size: 13px; }
    .ct-zero-list { padding: 4px 16px 16px; }
    .ct-teams { padding: 0 16px 16px; }

    .ct-top3-hd .ct-seg button { min-height: 38px; padding: 0 18px; font-size: 13px; }
    .ct-top3 { padding: 10px 0; }
    .ct-top3 img.md { width: 32px; height: 32px; }
    .ct-top3 .ct-av { width: 34px; height: 34px; font-size: 12px; }
    .ct-top3 .k b { font-size: 20px; }
    .ct-dist > div { grid-template-columns: 72px minmax(0, 1fr) 28px; font-size: 12px; }
    .ct-rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ct-rules-grid .ct-rule { flex-direction: column; gap: 8px; padding: 12px; }
    .ct-rules-grid .ct-rule .ic { width: 32px; height: 32px; border-radius: 9px; }
    .ct-rules-grid .ct-rule .ic svg { width: 16px; height: 16px; }
    .ct-rule small { font-size: 11px; }
    .ct-rule b { font-size: 14px; line-height: 1.3; }
    .ct-rule.fine { padding: 12px; }
    .ct-rule.fine .ic { width: 32px; height: 32px; border-radius: 9px; }
    .ct-spons { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ct-info { padding: 16px; }
    .ct-info-txt { font-size: 13px; line-height: 1.65; }
    .ct-law { padding: 16px; }
    .ct-law-btn { flex-wrap: wrap; gap: 4px 12px; padding: 0; min-height: 44px; }
    .ct-law-btn .ct-h2 { font-size: 24px; }
    .ct-law-btn .sm { order: 3; flex-basis: 100%; white-space: normal; font-size: 12px; }
    .ct-law-btn .tg { margin-left: auto; }
    .ct-law-btn .tg em { display: none; }
    .ct-law-btn .ch { width: 36px; height: 36px; }
    .ct-law-body { margin-top: 10px; }
    .ct-art { display: flex; gap: 12px; padding: 14px 0; }
    .ct-art > span { width: 30px; height: 30px; flex: none; border-radius: 9px; font-size: 16px; }
    .ct-art h3 { font-size: 15px; margin-bottom: 4px; }
    .ct-art .tx { font-size: 13px; line-height: 1.65; }

    /* Hộp thoại thành ngăn trượt từ dưới lên */
    .ct-modal { align-items: flex-end; padding: 0; }
    .ct-modal-veil { background: rgba(14, 36, 60, .55); }
    .ct-dlg, .ct-dlg.wide { max-width: 480px; max-height: 90vh; border-radius: 22px 22px 0 0; }
    .ct-dlg-pad { padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); gap: 16px; }
    .ct-dlg-grip { display: block; align-self: center; width: 40px; height: 4px; border-radius: 2px; background: #d3e0e6; }
    .ct-dlg-btns { display: grid; grid-template-columns: 1fr 1.6fr; }
    .ct-b1, .ct-b2 { min-height: 50px; font-size: 15px; }
    .ct-ath-hd { padding: 18px; gap: 12px; }
    .ct-ath-hd .ct-av.l { width: 52px; height: 52px; font-size: 17px; }
    .ct-ath-hd .ct-x { width: 40px; height: 40px; border-radius: 12px; }
    .ct-ath-b { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); }
    .ct-ath-3 b { font-size: 20px; }
    .ct-tsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ct-m-in { display: none; }
@media (max-width: 860px) { .ct-m-in { display: inline; } }
@media (max-width: 860px) {
    /* Di động: thứ tự khối theo mockup (BXH → Top 3 → Phân bổ → Quy định), «Thông tin từ BTC» xuống cuối,
       riêng thử thách sắp diễn ra thì đưa lên đầu */
    .ct-main, .ct-side { display: contents; }
    .ct-info { order: 1; }
    .ct-info.up { order: -1; }
}
.ct-info-txt.html { white-space: normal; }
.ct-body > .ct-grid:first-child { margin-top: 28px; }
@media (max-width: 860px) { .ct-body > .ct-grid:first-child { margin-top: 16px; } }

/* ===== Đăng ký theo hạng mục (rules.hang_muc) ===== */
.ct-hm { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ct-hm-i { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 8px; }
.ct-hm-i.on { border-color: var(--t-mint); background: rgba(78, 227, 154, .12); }
.ct-hm-i.elite { background: linear-gradient(135deg, rgba(245, 165, 36, .16), rgba(255, 255, 255, .06)); border-color: rgba(245, 165, 36, .4); }
.ct-hm-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ct-hm-h b { font-family: var(--t-display); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.ct-hm-km { flex: none; font-family: var(--t-display); font-size: 18px; font-weight: 700; color: var(--t-mint); white-space: nowrap; }
.ct-hm-km em { font-family: var(--t-font); font-style: normal; font-size: 12px; font-weight: 500; color: var(--t-hero-muted); }
.ct-hm-d { margin: 0; font-size: 13px; line-height: 1.5; color: var(--t-hero-text); }
.ct-hm-f { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ct-hm-f .ct-btn { width: 100%; }
.ct-hm-in { display: flex; flex-direction: column; gap: 8px; }
.ct-hm-in label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #fff; }
.ct-hm-in label small { font-weight: 400; color: var(--t-hero-muted); }
.ct-hm-in input { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .95); color: var(--t-navy); font-size: 15px; }
.ct-hm-chuan { margin: 0; font-size: 12px; color: #ffd98a; }
.ct-hm-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--t-mint); color: var(--t-dark); }
.ct-hm-cua { margin: 6px 0 2px; font-size: 14px; color: var(--t-hero-text); }
.ct-hm-cua strong { color: var(--t-mint); }
.ct-hm-doi { margin: 4px 0 8px; }
.ct-hm-doi > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--t-mint); list-style: none; }
.ct-hm-doi > summary::-webkit-details-marker { display: none; }
.ct-hm-doi > summary::after { content: ' ▾'; }
.ct-hm-doi[open] > summary::after { content: ' ▴'; }
.ct-hm-doi .ct-hm { margin-top: 10px; }
/* Điều lệ đầy đủ (thu gọn) */
.ct-dieule > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; cursor: pointer; list-style: none; }
.ct-dieule > summary::-webkit-details-marker { display: none; }
.ct-dieule > summary .ct-h2 { margin: 0; }
.ct-dieule > summary span { font-size: 13px; font-weight: 600; color: var(--t-teal); }
.ct-dieule[open] > summary span { font-size: 0; }
.ct-dieule[open] > summary span::after { content: 'Thu gọn'; font-size: 13px; }
.ct-dieule .ct-info-txt { padding: 0 22px 22px; white-space: pre-line; font-size: 14px; line-height: 1.7; }
#ctHm { flex-wrap: wrap; }
@media (max-width: 860px) {
    .ct-hm-h b { font-size: 20px; }
    .ct-dieule > summary { padding: 16px; }
    .ct-dieule .ct-info-txt { padding: 0 16px 16px; font-size: 13.5px; }
    #ctHm { overflow-x: auto; flex-wrap: nowrap; }
}

/* ===== 3 chuồng đã đăng ký (giải chia cự ly) ===== */
.ct-chuong-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ct-ch { border: 1px solid var(--t-line); border-radius: 16px; background: #fafcfd; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ct-ch.elite { border-color: #f3d38a; background: #fffbf1; }
.ct-ch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px 2px; }
.ct-ch-h b { font-family: var(--t-display); font-size: 20px; font-weight: 700; color: var(--t-navy); }
.ct-ch-h span { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--t-teal); padding: 2px 9px; border-radius: 999px; }
.ct-ch.elite .ct-ch-h span { background: var(--t-gold); }
.ct-ch-km { padding: 0 14px 10px; font-size: 12px; color: var(--t-muted); border-bottom: 1px solid var(--t-line); }
.ct-ch-ds { display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.ct-ch-r { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "av nm" "av g"; column-gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid #f1f5f7; }
.ct-ch-r:last-child { border-bottom: none; }
.ct-ch-r.me { background: #e6f4ef; }
.ct-ch-r .ct-av { grid-area: av; width: 30px; height: 30px; font-size: 11px; }
.ct-ch-r .nm { grid-area: nm; font-size: 14px; font-weight: 600; color: var(--t-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-ch-r .nm em { font-style: normal; margin-left: 4px; }
.ct-ch-r .g { grid-area: g; font-size: 11px; color: var(--t-muted); }
.ct-ch-none { padding: 18px 14px; text-align: center; font-size: 13px; color: var(--t-muted-2); }
.ct-ch-chua { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--t-gold-bg); font-size: 13px; color: var(--t-gold-text); }
@media (max-width: 1100px) { .ct-chuong-g { grid-template-columns: minmax(0, 1fr); } .ct-ch-ds { max-height: none; } }
