/* ==========================================================================
   THR — trang Hoạt động (/activities). Mockup: mockup/Hoat Dong(.dc|Mobile.dc).html
   Tiền tố .ha-  ·  Mốc di động 860px.
   ========================================================================== */
.t-activities { --ha-line: #e1eaee; --ha-in: #d3e0e6; }
.t-activities .ha-mb { display: none; }
.t-activities .ha-muted { font-size: 13px; color: var(--t-muted); }
.ha-flash { margin-left: clamp(20px, 4vw, 48px); margin-right: clamp(20px, 4vw, 48px); }
@media (min-width: 1376px) { .ha-flash { max-width: 1280px; margin-left: auto; margin-right: auto; } }

/* ---------- Tiêu đề ---------- */
.ha-head { max-width: 1280px; margin: 0 auto; padding: 14px clamp(20px, 4vw, 48px) 20px; box-sizing: content-box; }
.ha-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t-muted); }
.ha-crumb a { color: var(--t-muted); }
.ha-crumb b { color: var(--t-navy); font-weight: 600; }
.ha-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
body.thr .t-page .ha-h1 { margin: 0; font-family: var(--t-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--t-navy); }
.ha-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--t-text-2); }
.ha-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.ha-pill { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(19, 48, 90, .06); }
.ha-pill small { display: block; font-size: 11px; color: var(--t-muted); }
.ha-pill b { display: block; font-weight: 600; font-size: 14px; }
.ha-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--t-teal); }

/* ---------- Bố cục ---------- */
.ha-body { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) 64px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; box-sizing: content-box; }
.ha-main { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ha-side { flex: 0 1 320px; min-width: 280px; position: sticky; top: calc(var(--t-hdr, 96px) + 14px); transition: top .3s ease; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Bộ lọc (máy tính) ---------- */
.ha-filter { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 6px 22px rgba(19, 48, 90, .07); display: flex; flex-direction: column; gap: 12px; }
.ha-f-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ha-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ha-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ha-in); background: #fff; color: var(--t-navy); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.ha-chip.sm { min-height: 34px; padding: 0 12px; }
body.thr .t-page a.ha-chip:hover { color: var(--t-navy); border-color: var(--t-navy); }
.ha-chip .ck { display: none; }
.ha-chip .n { font-size: 11px; font-weight: 500; opacity: .65; }
.ha-chip.on { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
body.thr .t-page a.ha-chip.on:hover { color: #fff; }
.ha-chip.on .ck { display: inline-block; }
.ha-chip.dim { opacity: .45; }
.ha-search { flex: none; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ha-in); background: #f7fafb; box-sizing: border-box; }
.ha-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 13px; color: var(--t-navy); padding: 0; }
.ha-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #eef3f6; flex-wrap: wrap; }
.ha-seg a { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 999px; color: var(--t-text-2); font-size: 13px; font-weight: 600; box-sizing: border-box; }
.ha-seg a .n { font-size: 11px; font-weight: 500; opacity: .7; }
.ha-seg a.on { background: var(--t-grad-btn); color: #fff; }
body.thr .t-page .ha-seg a.on:hover { color: #fff; }
.ha-seg a.dim { opacity: .45; }
.ha-f-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ha-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t-muted); }
.ha-sort select { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ha-in); background: #f7fafb; color: var(--t-navy); font-size: 13px; font-weight: 600; cursor: pointer; }
.ha-advbtn { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ha-in); background: #fff; color: var(--t-navy); font-size: 13px; font-weight: 600; cursor: pointer; }
.ha-advbtn.open { background: #eef3f6; border-color: var(--t-navy); }
.ha-badge-s { min-width: 18px; height: 18px; border-radius: 999px; background: var(--t-teal); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; box-sizing: border-box; }
.ha-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; padding-top: 14px; border-top: 1px solid var(--t-line); }
.ha-adv[hidden] { display: none; }
.ha-adv-g { display: flex; flex-direction: column; gap: 8px; }
.ha-lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.ha-custom { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t-muted); }
.ha-custom input { width: 72px; min-height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ha-in); font-size: 13px; color: var(--t-navy); box-sizing: border-box; }
.ha-dates { display: flex; align-items: center; gap: 6px; }
.ha-dates span { color: var(--t-muted); }
.ha-dates input { flex: 1; min-width: 0; min-height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ha-in); color: var(--t-navy); font-size: 13px; box-sizing: border-box; }
.ha-checks { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.ha-checks label { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 13px; font-weight: 500; cursor: pointer; }
.ha-checks input { width: 16px; height: 16px; accent-color: var(--t-teal); margin: 0; }
.ha-checks span { font-size: 12px; color: var(--t-muted); }
.ha-tokens { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--t-line); }
.ha-tokens .ha-muted { font-size: 12px; margin-right: 2px; }
.ha-token { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--t-mint-bg); color: var(--t-navy); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ha-token span { width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--t-teal); display: flex; align-items: center; justify-content: center; font-size: 11px; }
body.thr .t-page .ha-clear { color: var(--t-teal); font-size: 12px; font-weight: 600; padding: 4px; white-space: nowrap; }

/* ---------- Thẻ hoạt động ---------- */
.ha-empty { background: #fff; border-radius: 18px; padding: 48px 20px; text-align: center; box-shadow: 0 6px 22px rgba(19, 48, 90, .07); }
.ha-empty-t { font-family: var(--t-display); font-weight: 700; font-size: 24px; }
.ha-empty p { margin: 6px 0 16px; font-size: 14px; color: var(--t-text-2); }
.ha-btn-grad, .ha-btn-strava { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px; background: var(--t-grad-btn); color: #fff !important; font-weight: 600; font-size: 14px; }
.ha-btn-strava { background: var(--t-strava); }
.ha-list { display: flex; flex-direction: column; gap: 18px; }
.ha-list:empty { display: none; }
.ha-group { display: flex; flex-direction: column; gap: 12px; }
.ha-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px; }
.ha-group-h div { font-family: var(--t-display); font-weight: 700; font-size: 20px; }
.ha-group-h span { font-size: 13px; color: var(--t-muted); white-space: nowrap; }
.ha-items { display: flex; flex-direction: column; gap: 14px; }
.ha-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 4px 16px rgba(19, 48, 90, .06); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "title" "stats" "acts"; gap: 12px; }
.ha-card.has-map { grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); grid-template-areas: "head map" "title map" "stats map" "acts map"; column-gap: 16px; grid-template-rows: auto auto auto 1fr; }
.ha-c-head { grid-area: head; display: flex; align-items: center; gap: 12px; }
.ha-av { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.ha-av img, .ha-top-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ha-c-who { flex: 1; min-width: 0; }
.ha-c-name { display: flex; align-items: center; gap: 6px; }
.ha-c-name > span { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ha-c-name > span:hover { color: var(--t-teal); }
.ha-c-name em { flex: none; font-style: normal; font-size: 10px; font-weight: 700; color: var(--t-teal); background: var(--t-mint-bg); padding: 2px 7px; border-radius: 999px; }
.ha-c-meta { font-size: 12px; color: var(--t-muted); margin-top: 2px; }
.ha-type { flex: none; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ha-c-title { grid-area: title; display: flex; align-items: center; gap: 8px; min-width: 0; }
body.thr .t-page .ha-c-title h3 { margin: 0; font-family: var(--t-font); font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ha-10k { flex: none; font-family: var(--t-display); font-weight: 700; font-size: 12px; letter-spacing: .04em; color: #fff; background: var(--t-grad) 50% 89.5%/350% 750% no-repeat; padding: 2px 8px; border-radius: 999px; }
.ha-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 12px; background: var(--t-soft); }
.ha-stats > div { padding: 10px 12px; min-width: 0; }
.ha-stats > div + div { border-left: 1px solid var(--ha-line); }
.ha-stats small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.ha-stats p { margin: 2px 0 0; white-space: nowrap; }
.ha-stats b { font-family: var(--t-display); font-weight: 700; font-size: 24px; line-height: 1; }
.ha-stats i { font-style: normal; font-size: 12px; color: var(--t-muted); margin-left: 3px; }
.ha-map { grid-area: map; position: relative; display: block; min-height: 150px; border-radius: 12px; overflow: hidden; background: #e8f0ee; }
.ha-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ha-map > span { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--t-navy); background: rgba(255, 255, 255, .9); padding: 3px 8px; border-radius: 999px; }
.ha-acts { grid-area: acts; display: flex; align-items: flex-start; gap: 8px; }
.ha-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ha-line); background: #fff; color: var(--t-text-2); font-size: 13px; font-weight: 600; box-sizing: border-box; }
body.thr .t-page a.ha-act:hover { color: var(--t-teal); border-color: #9fd9c4; }

/* ---------- Phân trang / tải thêm ---------- */
.ha-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.ha-pages { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ha-pages a, .ha-pages span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid var(--ha-line); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ha-pages .cur { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
.ha-pages .off { background: none; color: #a9b8c2; }
.ha-pages .gap { background: none; border: none; min-width: 0; padding: 0 4px; color: var(--t-muted); }
.ha-more { display: none; }

/* ---------- Cột phải ---------- */
.ha-strava { position: relative; border-radius: 18px; overflow: hidden; background: var(--t-navy) url('/images/ui/strava-bg.webp') 75% center/cover no-repeat; padding: 20px; color: #fff; }
.ha-strava::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 36, 60, .92) 0%, rgba(14, 36, 60, .7) 60%, rgba(14, 36, 60, .25) 100%); }
.ha-strava-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ha-strava-t { font-family: var(--t-display); font-weight: 700; font-size: 22px; line-height: 1; }
.ha-strava p { margin: 0; font-size: 13px; line-height: 1.5; color: #fff; }
.ha-strava form { margin: 0; }
.ha-strava a, .ha-strava button { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 40px; padding: 0 18px; border: none; border-radius: 999px; background: var(--t-strava); color: #fff !important; font-weight: 600; font-size: 13px; cursor: pointer; }
.ha-strava a:hover, .ha-strava button:hover { background: #e04300; }
.ha-box { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 6px 22px rgba(19, 48, 90, .07); }
.ha-box-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ha-box-h div { font-family: var(--t-display); font-weight: 700; font-size: 20px; }
body.thr .t-page .ha-box-h a { font-size: 13px; font-weight: 600; color: var(--t-teal); }
.ha-chal-list { display: flex; flex-direction: column; gap: 10px; }
.ha-chal { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--t-soft); }
.ha-chal-r1 { display: flex; align-items: center; justify-content: space-between; }
.ha-chal-r1 span { font-size: 11px; font-weight: 700; color: var(--t-teal); background: var(--t-mint-bg); padding: 3px 9px; border-radius: 999px; }
.ha-chal-r1 small { font-size: 12px; color: var(--t-muted); }
.ha-chal-t { font-weight: 600; font-size: 15px; }
.ha-chal-m { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--t-text-2); }
.ha-chal-m strong { color: var(--t-navy); }
.ha-bar { height: 6px; border-radius: 999px; background: var(--ha-line); overflow: hidden; }
.ha-bar i { display: block; height: 100%; background: linear-gradient(90deg, #17987a, #13305a); border-radius: 999px; }
.ha-chal-f { font-size: 11px; color: var(--t-muted); }
.ha-chal-go { display: none; }
.ha-top { display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; }
.ha-top + .ha-top { border-top: 1px solid var(--t-line); }
.ha-rank { display: flex; align-items: center; }
.ha-rank img { width: 30px; height: 30px; object-fit: contain; flex: none; margin-left: -3px; }
.ha-rank b { font-family: var(--t-display); font-weight: 700; font-size: 20px; color: var(--t-navy); }
.ha-top-av { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; cursor: pointer; }
.ha-top-n { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ha-top-km { white-space: nowrap; }
.ha-top-km b { font-family: var(--t-display); font-weight: 700; font-size: 18px; }
.ha-top-km i { font-style: normal; font-size: 11px; color: var(--t-muted); margin-left: 2px; }

/* ---------- Thanh lọc di động + tấm lọc ---------- */
.ha-mbar, .ha-sheet { display: none; }

/* ---------- Hộp thoại (hồ sơ VĐV, bản đồ) ---------- */
.ha-modal { position: fixed; inset: 0; z-index: 999; }
.ha-modal[hidden] { display: none; }
.ha-modal-veil { position: absolute; inset: 0; background: rgba(14, 36, 60, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ha-modal-wrap { position: relative; height: 100%; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; box-sizing: border-box; pointer-events: none; }
.ha-modal-box { pointer-events: auto; position: relative; width: 100%; max-width: 520px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(14, 36, 60, .3); }
.ha-modal-box.wide { max-width: 860px; }
.ha-modal-x { position: absolute; top: 12px; right: 12px; z-index: 500; width: 34px; height: 34px; border: none; border-radius: 50%; background: rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ha-modal-x.dark { background: rgba(19, 48, 90, .75); }
.ha-mapbig-t { padding: 16px 60px 12px 18px; font-weight: 600; font-size: 16px; }
.ha-mapbig { height: min(70vh, 560px); background: #e8f0ee; }
.ha-load { display: flex; justify-content: center; padding: 70px 0; }
.ha-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--t-mint-bg); border-top-color: var(--t-teal); animation: ha-spin .8s linear infinite; }
@keyframes ha-spin { to { transform: rotate(360deg); } }
.ha-up-top { padding: 22px 20px 18px; color: #fff; background: var(--t-dark) url('/images/ui/cta-bg.webp') center/cover no-repeat; position: relative; }
.ha-up-top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 42, 60, .55), rgba(14, 42, 60, .92)); }
.ha-up-top > * { position: relative; }
.ha-up-me { display: flex; align-items: center; gap: 14px; }
.ha-up-me img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); flex: none; }
.ha-up-n { font-family: var(--t-display); font-weight: 700; font-size: 26px; line-height: 1.05; overflow-wrap: anywhere; }
.ha-up-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 12px; color: var(--t-hero-text); align-items: center; }
.ha-up-tags b { background: rgba(78, 227, 154, .2); color: var(--t-mint); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.ha-up-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ha-up-stats div { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 4px; text-align: center; }
.ha-up-stats b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.ha-up-stats small { display: block; font-size: 11px; white-space: nowrap; color: var(--t-hero-muted); }
.ha-up-body { padding: 16px 18px 20px; }
.ha-up-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 10px; }
.ha-up-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--t-soft); margin-bottom: 8px; }
.ha-up-row .tt { flex: 1; min-width: 0; }
.ha-up-row .tt div { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha-up-row .tt small, .ha-up-row .kk small { font-size: 11px; color: var(--t-muted); }
.ha-up-row .kk { text-align: right; flex: none; }
.ha-up-row .kk b { display: block; font-family: var(--t-display); font-weight: 700; font-size: 18px; }
.ha-up-map { height: 130px; border-radius: 12px; overflow: hidden; margin: -2px 0 10px; background: #e8f0ee; }
.ha-up-empty { text-align: center; padding: 28px 0; color: var(--t-muted); font-size: 14px; }
.leaflet-control-zoom { display: none; }

/* ==========================================================================
   Di động (≤860px) — theo «Hoat Dong Mobile»
   ========================================================================== */
@media (max-width: 860px) {
    .t-activities .ha-pc { display: none; }
    .t-activities .ha-mb { display: block; }
    .ha-flash { margin: 12px 16px 0; }
    .ha-head { padding: 18px 20px 6px; }
    .ha-crumb { display: none; }
    .ha-head-row { margin-top: 0; display: block; }
    body.thr .t-page .ha-h1 { font-size: 34px; }
    .ha-lead { margin-top: 6px; font-size: 13px; line-height: 1.5; }
    .ha-pills { margin-top: 12px; display: block; }
    .ha-pill { padding: 10px 12px; gap: 8px; }
    .ha-pill > div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .ha-pill small { font-size: 13px; }
    .ha-pill b { font-size: 13px; text-align: right; }

    .ha-mbar { display: block; position: sticky; top: var(--t-hdr, 60px); transition: top .3s ease; z-index: 30; background: rgba(243, 248, 247, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 0; border-bottom: 1px solid #e3ebef; }
    .ha-mbar-r1 { display: flex; align-items: center; gap: 8px; padding-left: 16px; }
    .ha-fbtn { position: relative; flex: none; width: 44px; height: 40px; border-radius: 12px; border: 1px solid var(--t-navy); background: var(--t-navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .ha-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--t-teal); border: 2px solid #f3f8f7; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-sizing: border-box; }
    .ha-qchips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding-right: 16px; scrollbar-width: none; }
    .ha-qchips::-webkit-scrollbar { display: none; }
    .ha-qchips .ha-chip { flex: none; min-height: 38px; }
    .ha-mbar-r2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 0; font-size: 12px; color: var(--t-muted); }
    .ha-mbar-r2 strong { color: var(--t-navy); }
    .ha-msort { position: relative; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
    .ha-msort b { font-weight: 600; color: var(--t-navy); }
    .ha-msort select { position: absolute; inset: -10px 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
    .ha-tokens-m { border-top: none; flex-wrap: nowrap; overflow-x: auto; padding: 8px 16px 0; scrollbar-width: none; }
    .ha-tokens-m::-webkit-scrollbar { display: none; }
    .ha-tokens-m .ha-token { flex: none; min-height: 30px; }
    .ha-tokens-m .ha-token span { width: 18px; height: 18px; font-size: 12px; }

    .ha-filter { display: none; }
    .ha-body { padding: 0; display: block; }
    .ha-main { padding: 6px 16px 8px; gap: 18px; }
    .ha-main:has(.ha-list:empty) { padding-top: 16px; }
    .ha-empty { padding: 36px 18px; }
    .ha-empty-t { font-size: 22px; }
    .ha-empty p { font-size: 13px; margin-bottom: 14px; }
    .ha-btn-grad, .ha-btn-strava { min-height: 44px; padding: 0 22px; }
    .ha-group { gap: 10px; }
    .ha-group-h { gap: 8px; }
    .ha-group-h div { font-size: 18px; }
    .ha-group-h span { font-size: 12px; }
    .ha-items { gap: 18px; }
    .ha-card, .ha-card.has-map { padding: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "title" "stats" "map" "acts"; grid-template-rows: none; gap: 10px; }
    .ha-av { width: 40px; height: 40px; }
    .ha-c-head { gap: 10px; }
    .ha-type { padding: 4px 9px; }
    body.thr .t-page .ha-c-title h3 { font-size: 15px; }
    .ha-stats { display: flex; }
    .ha-stats > div { flex: 1; padding: 8px 10px; }
    .ha-stats small { font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; }
    .ha-stats p { margin: 0; }
    .ha-stats b { font-size: 22px; }
    .ha-stats i { font-size: 11px; margin-left: 2px; }
    /* Thẻ gọn: bản đồ thấp hơn, nút nhỏ (trước mỗi thẻ ~370px, 20 bài gần 9.000px) */
    .ha-card, .ha-card.has-map { gap: 8px; }
    .ha-map { height: 96px; min-height: 0; }
    .ha-acts { gap: 6px; padding-top: 2px; justify-content: flex-start; }
    .ha-act { flex: none; min-height: 32px; padding: 0 12px; font-size: 12px; }
    .ha-act svg { width: 14px; height: 14px; }

    .ha-pager { display: none; }
    .ha-more { display: flex; flex-direction: column; gap: 18px; text-align: center; }
    .ha-more .ha-muted { font-size: 12px; }
    .ha-more-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--t-navy); background: #fff; color: var(--t-navy); font-weight: 600; font-size: 14px; box-sizing: border-box; }
    .ha-more-btn.busy { opacity: .6; pointer-events: none; }

    .ha-side { position: static; min-width: 0; padding: 22px 16px 28px; gap: 16px; }
    .ha-strava { display: none; }
    .ha-side .ha-box:has(.ha-chal-list) { background: none; box-shadow: none; padding: 0; }
    .ha-side .ha-box:has(.ha-chal-list) > .ha-box-h { display: none; }
    .ha-chal { padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(19, 48, 90, .07); }
    .ha-chal-f { display: none; }
    .ha-chal-go { display: block; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--t-teal); }

    .ha-sheet { display: flex; position: fixed; inset: 0; z-index: 70; justify-content: center; align-items: flex-end; }
    .ha-sheet[hidden] { display: none; }
    .ha-sheet-veil { position: absolute; inset: 0; background: rgba(14, 36, 60, .45); }
    .ha-sheet-box { position: relative; width: 100%; max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-sizing: border-box; margin: 0; }
    .ha-sheet-top { padding: 10px 20px 6px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--t-line); }
    .ha-grip { width: 40px; height: 4px; border-radius: 999px; background: var(--ha-in); align-self: center; }
    .ha-sheet-h { display: flex; align-items: center; justify-content: space-between; }
    .ha-sheet-h div { font-family: var(--t-display); font-weight: 700; font-size: 22px; }
    .ha-x { width: 40px; height: 40px; border: none; border-radius: 12px; background: #eef3f6; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .ha-sheet-body { flex: 1; overflow-y: auto; padding: 4px 20px 12px; display: flex; flex-direction: column; }
    .ha-sec { border-bottom: 1px solid var(--t-line); }
    .ha-sec-search { display: block; padding: 10px 0 12px; }
    .ha-sec-search input, .ha-pair input { width: 100%; flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ha-in); font-size: 16px; color: var(--t-navy); box-sizing: border-box; background: #fff; }
    .ha-sec-h { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0; border: none; background: none; cursor: pointer; text-align: left; }
    .ha-sec-h span { font-size: 15px; font-weight: 600; color: var(--t-navy); }
    .ha-sec-h em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--t-muted); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ha-sec-h em.chg { color: var(--t-teal); }
    .ha-sec-h svg { flex: none; transition: transform .2s; }
    .ha-sec.open .ha-sec-h svg { transform: rotate(180deg); }
    .ha-sec-b { display: none; padding: 2px 0 14px; }
    .ha-sec.open .ha-sec-b { display: flex; flex-direction: column; gap: 14px; }
    .ha-sec-b .ha-chip { min-height: 38px; padding: 0 12px; }
    .ha-rchip { cursor: pointer; }
    .ha-rchip input { position: absolute; opacity: 0; pointer-events: none; }
    .ha-rchip span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ha-in); background: #fff; color: var(--t-navy); font-size: 13px; font-weight: 600; white-space: nowrap; box-sizing: border-box; }
    .ha-rchip span .ck { display: none; }
    .ha-rchip span i { font-style: normal; font-size: 11px; font-weight: 500; opacity: .65; }
    .ha-rchip input:checked + span { background: var(--t-navy); border-color: var(--t-navy); color: #fff; }
    .ha-rchip input:checked + span .ck { display: inline-block; }
    .ha-rchip input:focus-visible + span { outline: 2px solid var(--t-teal); outline-offset: 2px; }
    .ha-rchip.dim { opacity: .45; }
    .ha-pair { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t-muted); }
    .ha-sw { display: flex; align-items: center; gap: 10px; min-height: 56px; font-size: 15px; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--t-line); }
    .ha-sw:last-child { border-bottom: none; }
    .ha-sw span { font-size: 12px; font-weight: 500; color: var(--t-muted); }
    .ha-sw input { margin-left: auto; width: 22px; height: 22px; accent-color: var(--t-teal); }
    .ha-sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t-line); background: #fff; }
    .ha-sheet-reset { flex: none; display: flex; align-items: center; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ha-in); background: #fff; color: var(--t-navy); font-weight: 600; font-size: 14px; box-sizing: border-box; }
    .ha-sheet-go { flex: 1; min-height: 50px; border: none; border-radius: 999px; background: var(--t-grad-btn); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }

    .ha-modal-wrap { padding: 20px 12px; }
    .ha-up-stats b { font-size: 18px; }
    .ha-up-me img { width: 60px; height: 60px; }
    .ha-up-n { font-size: 22px; }
}
