/*
Theme Name: HealthTrack One PWA
Theme URI: https://health.begoling.com/
Author: HealthTrack
Description: Responsive premium PWA theo dõi GPS, quãng đường, vận động, BMI, BPM và lịch sử hoạt động.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: healthtrack-pro
*/
:root{
  --bg:#f3f7f5;--bg2:#eaf3ee;--card:#fff;--ink:#102019;--ink2:#254137;--muted:#74827b;--line:#e2ebe6;
  --green:#19b96b;--green2:#0a874c;--green3:#dff7ea;--navy:#0c261b;--red:#ef496b;--orange:#ff9c4b;--blue:#4c8df6;
  --shadow:0 18px 48px rgba(19,57,40,.09);--shadow2:0 28px 80px rgba(15,48,33,.13);--r:24px;--safe:env(safe-area-inset-bottom,0px)
}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Bai Jamjuree",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#wpadminbar{display:none!important}html.wp-toolbar{padding-top:0!important}body.admin-bar{margin-top:0!important}
.ht-shell{min-height:100vh;background:radial-gradient(circle at 12% 0,#fbfffd 0,#f4f8f6 35%,#eef5f1 100%)}
.ht-topbar{position:sticky;top:0;z-index:1200;padding:14px 22px;background:rgba(244,248,246,.82);backdrop-filter:blur(18px)}.ht-topbar-inner{max-width:1450px;margin:auto;min-height:68px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.96);border-radius:22px;box-shadow:0 10px 34px rgba(14,51,34,.07)}
.ht-brand{display:flex;align-items:center;gap:12px}.ht-brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#19be6f,#73dea3);color:#fff;box-shadow:0 12px 24px rgba(25,185,107,.25);padding:9px}.ht-brand-mark svg{stroke:none}.ht-brand-copy{display:flex;flex-direction:column;line-height:1.08}.ht-brand-copy strong{font-size:19px;letter-spacing:-.025em}.ht-brand-copy small{font-size:9px;color:#87948d;font-weight:700;letter-spacing:.14em;margin-top:4px}.ht-top-actions{display:flex;align-items:center;gap:10px}.ht-gps-chip{height:38px;padding:0 13px;display:flex;align-items:center;gap:8px;border:1px solid #dceae3;background:#f7fbf9;border-radius:999px;color:#375447;font-size:11px;font-weight:600}.ht-gps-chip i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(25,185,107,.12)}.ht-install-top{height:40px;padding:0 16px;border:0;border-radius:13px;background:var(--navy);color:#fff;font-weight:700;font-size:12px;display:flex;gap:7px;align-items:center}.ht-install-top span{font-size:18px;font-weight:400}
.ht-app-shell{max-width:1480px;margin:0 auto;padding:0 22px 34px;display:grid;grid-template-columns:96px minmax(0,1fr);gap:20px}.ht-native-app{min-width:0}.ht-content{width:100%}.ht-screen{display:none;animation:htFade .22s ease}.ht-screen.is-active{display:block}@keyframes htFade{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
.ht-bottom-nav{position:sticky;top:110px;align-self:start;z-index:700}.ht-bottom-inner{display:flex;flex-direction:column;gap:8px;padding:10px;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.95);border-radius:24px;box-shadow:var(--shadow);backdrop-filter:blur(15px)}.ht-bottom-nav button{height:72px;border:0;background:transparent;border-radius:18px;color:#8a9991;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;position:relative;transition:.18s}.ht-bottom-nav button:hover{background:#f4f9f6;color:#2c5945}.ht-bottom-nav button.is-active{background:linear-gradient(145deg,#e5f9ee,#f7fffb);color:var(--green2);box-shadow:inset 0 0 0 1px #d7f1e3}.ht-nav-icon{width:23px;height:23px}.ht-bottom-nav button b{font-size:9px;letter-spacing:.02em}
.ht-home-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.72fr);gap:20px}.ht-home-main,.ht-home-side{min-width:0}.ht-home-head,.ht-screen-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:4px 0 20px}.ht-eyebrow{display:block;color:var(--green2);font-size:11px;font-weight:700;letter-spacing:.12em;margin-bottom:7px}.ht-home-head h1,.ht-screen-header h1{margin:0;font-size:clamp(30px,3vw,44px);line-height:1.05;letter-spacing:-.025em}.ht-home-head p,.ht-screen-header p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.6;max-width:650px}.ht-date-badge{width:62px;height:66px;flex:0 0 auto;border-radius:19px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line);box-shadow:0 12px 28px rgba(15,55,37,.06);font-size:23px;font-weight:700;letter-spacing:-.03em}.ht-date-badge small{font-size:9px;color:var(--green2);letter-spacing:.12em;margin-top:2px}
.ht-hero-card{min-height:242px;position:relative;overflow:hidden;display:grid;grid-template-columns:170px 1fr auto;gap:24px;align-items:center;padding:26px 30px;border-radius:30px;background:linear-gradient(135deg,#0c281c 0,#0b3c27 58%,#0c5a34 100%);color:#fff;box-shadow:var(--shadow2)}.ht-hero-glow{position:absolute;width:300px;height:300px;right:-70px;top:-130px;border-radius:50%;background:radial-gradient(circle,rgba(89,222,147,.35),transparent 65%)}.ht-ring{--p:0;width:142px;height:142px;border-radius:50%;position:relative;display:grid;place-items:center;background:conic-gradient(#65e39d calc(var(--p)*1%),rgba(255,255,255,.13) 0);box-shadow:0 14px 30px rgba(0,0,0,.17)}.ht-ring::before{content:"";position:absolute;inset:11px;border-radius:50%;background:#0e3223;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.ht-ring>div{position:relative;text-align:center}.ht-ring b{display:block;font-size:30px;letter-spacing:-.03em}.ht-ring span{font-size:10px;color:#a9d9bf}.ht-hero-copy{position:relative;z-index:1}.ht-hero-copy>span{font-size:10px;color:#8fdab0;font-weight:700;letter-spacing:.11em}.ht-hero-copy h2{font-size:31px;line-height:1.05;margin:7px 0 8px;letter-spacing:-.025em}.ht-hero-copy p{margin:0;color:#b9d8c8;font-size:12px}.ht-hero-copy p strong{color:#fff}.ht-hero-copy button{margin-top:15px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.10);color:#fff;border-radius:12px;padding:10px 13px;font-size:11px;font-weight:700}.ht-hero-orbit{position:relative;z-index:1;width:86px;height:86px;border-radius:28px;background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;align-items:center;justify-content:center}.ht-hero-orbit span{font-weight:700;font-size:18px}.ht-hero-orbit small{font-size:8px;color:#80e4a9;letter-spacing:.15em;margin-top:3px}
.ht-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:15px}.ht-quick-card{min-height:106px;padding:14px 15px;display:flex;flex-direction:column;justify-content:space-between;border-radius:22px;background:rgba(255,255,255,.95);border:1px solid var(--line);box-shadow:0 10px 26px rgba(14,54,36,.045)}.ht-qicon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;font-size:16px}.ht-qicon.mint{background:#e7f9ef}.ht-qicon.orange{background:#fff2e6}.ht-qicon.blue{background:#edf4ff}.ht-qicon.pink{background:#fff0f3}.ht-quick-card small{display:block;color:var(--muted);font-size:10px;margin-top:9px}.ht-quick-card b{font-size:22px;letter-spacing:-.025em}.ht-quick-card em{display:block;font-size:9px;color:#9aa7a0;font-style:normal}
.ht-start-hero{width:100%;margin-top:14px;border:0;padding:15px 17px;border-radius:20px;background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;display:grid;grid-template-columns:44px 1fr 22px;align-items:center;gap:13px;text-align:left;box-shadow:0 16px 32px rgba(25,185,107,.20)}.ht-play{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:rgba(255,255,255,.16)}.ht-start-hero b{display:block;font-size:14px}.ht-start-hero small{display:block;color:#cbf2dc;font-size:10px;margin-top:3px}.ht-chevron{font-size:28px;color:#d8f5e5}.ht-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:24px 2px 11px}.ht-section-title h2{margin:0;font-size:21px;letter-spacing:-.03em}.ht-section-title p{margin:4px 0 0;color:var(--muted);font-size:10px}.ht-text-btn{border:0;background:transparent;color:var(--green2);font-size:11px;font-weight:700}.ht-text-btn.danger{color:#d63b5b}.ht-home-recent{display:grid;gap:9px}.ht-empty-mini{padding:24px;border:1px dashed #d2dfd8;border-radius:20px;background:rgba(255,255,255,.72);color:var(--muted);font-size:11px;text-align:center}
.ht-home-side{display:flex;flex-direction:column;gap:14px}.ht-side-card{padding:20px;border-radius:26px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);cursor:pointer}.ht-side-title{display:flex;align-items:center;justify-content:space-between}.ht-side-title>span{font-size:9px;color:var(--green2);font-weight:700;letter-spacing:.12em}.ht-side-title button{width:30px;height:30px;border:0;border-radius:10px;background:#f1f7f4;color:#385a49}.ht-health-overview{background:linear-gradient(165deg,#ffffff 20%,#f1fbf6)}.ht-side-heart{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;margin:24px 0 14px;background:linear-gradient(135deg,#ff718c,#e94163);color:#fff;font-size:24px;box-shadow:0 14px 28px rgba(233,65,99,.20)}.ht-side-card h3{margin:0;font-size:20px;letter-spacing:-.03em}.ht-side-card p{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.ht-side-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.ht-side-meta span{padding:12px;border-radius:16px;background:rgba(255,255,255,.9);border:1px solid #e6f0eb}.ht-side-meta b{display:block;font-size:20px}.ht-side-meta small{display:block;color:var(--muted);font-size:9px}.ht-gps-overview{background:linear-gradient(150deg,#0e2b1f,#123f2a);color:#fff}.ht-gps-overview .ht-side-title>span{color:#8fe0b2}.ht-pulse{width:10px;height:10px;border-radius:50%;background:#54e395;box-shadow:0 0 0 7px rgba(84,227,149,.10)}.ht-gps-overview p{color:#b7d4c6}.ht-route-preview{height:90px;margin:17px 0;position:relative;border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.03));overflow:hidden}.ht-route-preview i{position:absolute;left:25%;top:57%;width:55%;height:2px;background:#63e49c;transform:rotate(-13deg);box-shadow:0 0 10px rgba(99,228,156,.4)}.ht-route-preview span{position:absolute;width:10px;height:10px;border-radius:50%;background:#fff;border:3px solid #35c87c}.ht-route-preview .p1{left:17%;top:62%}.ht-route-preview .p2{left:52%;top:40%}.ht-route-preview .p3{right:17%;top:28%}.ht-gps-overview button{width:100%;border:0;border-radius:13px;background:#fff;color:#153c2b;padding:11px 13px;font-size:11px;font-weight:700;display:flex;justify-content:space-between}.ht-mini-tip{display:flex;gap:11px;padding:15px;border-radius:20px;background:#fff8e9;border:1px solid #f0dfb5}.ht-mini-tip>span{width:36px;height:36px;border-radius:12px;background:#fff1c9;display:grid;place-items:center;flex:0 0 auto}.ht-mini-tip b{font-size:11px}.ht-mini-tip p{margin:3px 0 0;color:#7e6b41;font-size:9px;line-height:1.5}
.ht-screen-header{margin-top:4px}.ht-live-dot{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:9px 12px;border-radius:999px;background:#edf9f2;color:var(--green2);border:1px solid #d8eee2;font-size:10px;font-weight:700}.ht-live-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(25,185,107,.12)}
.ht-activity-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.65fr);gap:18px}.ht-activity-main,.ht-activity-panel{min-width:0}.ht-mode-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.ht-mode{min-height:82px;border:1px solid var(--line);background:#fff;border-radius:20px;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;padding:12px 13px;color:#4f6259}.ht-mode>span{grid-row:1/3;width:42px;height:42px;border-radius:14px;background:#f1f7f4;display:grid;place-items:center;font-size:19px}.ht-mode b{font-size:12px}.ht-mode small{font-size:8px;color:#9aa7a0}.ht-mode.is-active{background:linear-gradient(145deg,#e8faef,#fbfffd);border-color:#bce9cf;color:var(--green2);box-shadow:0 10px 22px rgba(25,185,107,.08)}.ht-mode.is-active>span{background:#d8f5e5}
.ht-map-card{position:relative;overflow:hidden;border-radius:28px;background:#dfe9e3;border:1px solid #dce7e1;box-shadow:var(--shadow)}#ht-map{height:585px;width:100%}.ht-map-status,.ht-gps-accuracy{position:absolute;top:14px;z-index:500;padding:9px 11px;border-radius:12px;font-size:10px;font-weight:700;box-shadow:0 8px 18px rgba(0,0,0,.12)}.ht-map-status{left:14px;background:rgba(12,33,24,.91);color:#fff}.ht-gps-accuracy{right:14px;background:rgba(255,255,255,.94);color:#365445}.ht-map-locate{position:absolute;right:14px;bottom:20px;z-index:500;width:46px;height:46px;border:0;border-radius:15px;background:#fff;color:#164a35;font-size:20px;box-shadow:0 10px 25px rgba(0,0,0,.12)}
.ht-activity-panel{display:flex;flex-direction:column;gap:10px}.ht-primary-metric{padding:23px;border-radius:26px;background:linear-gradient(145deg,#0d291e,#10442c);color:#fff;box-shadow:var(--shadow2)}.ht-primary-metric small{font-size:9px;color:#85d6a8;letter-spacing:.13em;font-weight:700}.ht-primary-metric>div{display:flex;align-items:flex-end;gap:8px;margin:8px 0}.ht-primary-metric b{font-size:54px;line-height:.9;letter-spacing:-.06em}.ht-primary-metric span{font-size:14px;color:#b9dcca;margin-bottom:5px}.ht-primary-metric p{margin:0;color:#9ec8b3;font-size:10px}.ht-live-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ht-live-metrics>div,.ht-metric-strip>div{padding:15px;border-radius:19px;background:#fff;border:1px solid var(--line)}.ht-live-metrics small,.ht-metric-strip small{display:block;color:var(--muted);font-size:9px;margin-bottom:5px}.ht-live-metrics b{font-size:20px;letter-spacing:-.03em}.ht-live-metrics span{font-size:9px;color:var(--muted)}.ht-metric-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ht-metric-strip>div{position:relative}.ht-metric-strip>div>span{position:absolute;right:12px;top:12px}.ht-metric-strip b{font-size:15px}.ht-metric-strip em{display:block;font-size:8px;color:var(--muted);font-style:normal;margin-top:3px}.ht-hidden-state{display:none}.ht-action-dock{display:grid;grid-template-columns:52px 1fr 52px;gap:9px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:21px;box-shadow:var(--shadow)}.ht-round-action{height:52px;border:0;border-radius:16px;font-weight:700}.ht-round-action:disabled{opacity:.35}.ht-pause{background:#eef3f0;color:#2d4539}.ht-stop{background:#fff0f3;color:#c22e50}.ht-main-action{height:52px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 11px 23px rgba(25,185,107,.2)}.ht-main-action b{font-size:12px;letter-spacing:.08em}.ht-note-compact{color:var(--muted);font-size:9px;text-align:center;line-height:1.5;padding:0 8px}
.ht-health-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}.ht-health-hero{min-height:255px;display:flex;justify-content:space-between;align-items:center;padding:28px;border-radius:30px;background:linear-gradient(135deg,#0d261b,#124b30);color:#fff;box-shadow:var(--shadow2)}.ht-health-hero small{display:block;color:#8bd7ab;font-size:10px;font-weight:700;letter-spacing:.12em}.ht-health-hero b{display:block;font-size:68px;line-height:1;margin:8px 0 4px;letter-spacing:-.06em}.ht-health-hero span{color:#bddaca;font-size:12px}.ht-heart-orb{width:98px;height:98px;border-radius:31px;background:linear-gradient(135deg,#ff718c,#e94263);display:grid;place-items:center;font-size:38px;box-shadow:0 18px 35px rgba(233,65,99,.26)}.ht-form-card{padding:22px;border-radius:25px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 30px rgba(14,54,36,.045)}.ht-card-title{display:flex;justify-content:space-between;gap:12px}.ht-card-title h2{margin:0;font-size:18px}.ht-card-title p{margin:5px 0 14px;color:var(--muted);font-size:10px;line-height:1.5}.ht-card-icon,.ht-heart-dot{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:#edf7f2;color:#35604c}.ht-heart-dot{background:#fff0f3;color:#df3f60}.ht-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ht-field label{display:block;color:var(--muted);font-size:10px;font-weight:600;margin-bottom:6px}.ht-input-unit{display:flex;align-items:center;border:1px solid var(--line);background:#f9fcfa;border-radius:15px;overflow:hidden}.ht-input-unit input{min-width:0;flex:1;border:0;background:transparent;outline:0;padding:13px}.ht-input-unit span{padding-right:13px;color:#9aa7a0;font-size:10px}.ht-last-heart{padding:16px;border-radius:18px;background:#fff6f8;border:1px solid #ffe0e7}.ht-last-heart small{display:block;color:#a06d79;font-size:9px}.ht-last-heart b{display:block;font-size:31px;letter-spacing:-.025em;margin:3px 0}.ht-last-heart span{color:#a97e88;font-size:9px}.ht-hr-row{display:flex;gap:8px;margin-top:10px}.ht-hr-row input{flex:1;min-width:0;border:1px solid var(--line);border-radius:14px;padding:13px;outline:0}.ht-btn-primary-mini{border:0;border-radius:14px;background:var(--green);color:#fff;padding:0 19px;font-weight:700}.ht-sync-card{grid-column:1/-1}.ht-toggle{display:flex;gap:12px;align-items:flex-start}.ht-toggle input{margin-top:2px}.ht-toggle span{display:flex;flex-direction:column}.ht-toggle b{font-size:12px}.ht-toggle small{font-size:9px;color:var(--muted);margin-top:3px}.ht-disclaimer{margin-top:12px;padding:13px 15px;border-radius:17px;background:#fff8e9;border:1px solid #eedfb9;color:#776440;font-size:9px;line-height:1.55}
.ht-history-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.ht-history-summary>div{position:relative;padding:18px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 24px rgba(14,54,36,.04)}.ht-history-summary small{display:block;color:var(--muted);font-size:9px;margin:10px 0 4px}.ht-history-summary b{font-size:23px;letter-spacing:-.025em}.ht-history-ico{position:absolute;right:15px;top:15px;width:32px;height:32px;border-radius:11px;background:#edf8f2;color:var(--green2);display:grid;place-items:center}.ht-history-list{display:grid;gap:10px}.ht-session{display:grid;grid-template-columns:48px minmax(180px,1.3fr) repeat(4,minmax(90px,.75fr));gap:12px;align-items:center;padding:14px 16px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:0 9px 24px rgba(14,54,36,.035)}.ht-session-ico{width:46px;height:46px;border-radius:15px;background:var(--green3);display:grid;place-items:center;font-size:18px}.ht-session-title b{display:block;font-size:13px}.ht-session-title small,.ht-session-metric span{display:block;color:var(--muted);font-size:9px;margin-top:3px}.ht-session-metric b{font-size:13px}.ht-empty{padding:42px;border:1px dashed #d2ded8;border-radius:22px;background:rgba(255,255,255,.72);text-align:center;color:var(--muted);font-size:11px}
.ht-more-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.ht-settings-card{overflow:hidden;border-radius:25px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.ht-settings-card button{width:100%;border:0;background:#fff;display:grid;grid-template-columns:46px 1fr 18px;align-items:center;gap:12px;text-align:left;padding:17px;border-bottom:1px solid #edf2ef}.ht-settings-card button:last-child{border-bottom:0}.ht-setting-icon{width:44px;height:44px;border-radius:15px;background:#e9f8f0;display:grid;place-items:center;color:var(--green2);font-size:20px}.ht-settings-card b{display:block;font-size:13px}.ht-settings-card small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.ht-settings-card i{font-size:25px;color:#a2afa8;font-style:normal}.ht-about-card{text-align:center;padding:25px;border-radius:25px;background:linear-gradient(160deg,#fff,#f4faf7);border:1px solid var(--line);box-shadow:var(--shadow)}.ht-brand-mark.big{width:62px;height:62px;border-radius:21px;margin:0 auto 12px;padding:0;font-size:25px}.ht-about-card h2{margin:0;font-size:21px}.ht-about-card p{margin:5px 0 16px;color:var(--muted);font-size:10px}.ht-version-row{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid #e7efeb;font-size:10px}.ht-version-row span{color:var(--muted)}.ht-version-row b{font-size:10px}
.ht-toast{position:fixed;left:50%;bottom:24px;z-index:3000;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:#0c2118;color:#fff;padding:11px 15px;border-radius:13px;font-size:10px;font-weight:700;box-shadow:0 16px 42px rgba(0,0,0,.2);transition:.2s}.ht-toast.is-show{opacity:1;transform:translate(-50%,0)}.ht-install-sheet{position:fixed;inset:0;z-index:3000;display:none;align-items:flex-end;justify-content:center;background:rgba(6,17,12,.52);padding:15px}.ht-install-sheet.is-open{display:flex}.ht-install-panel{width:min(520px,100%);background:#fff;border-radius:26px;padding:20px;box-shadow:0 30px 80px rgba(0,0,0,.30)}.ht-install-panel h3{margin:0 0 6px}.ht-install-panel p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.ht-install-steps{list-style:none;padding:0;margin:14px 0;display:grid;gap:8px}.ht-install-steps li{display:flex;gap:9px;font-size:12px}.ht-install-num{width:25px;height:25px;flex:0 0 25px;border-radius:50%;display:grid;place-items:center;background:var(--green3);color:var(--green2);font-weight:700}.ht-install-actions button{border:0;border-radius:13px;padding:11px 14px;background:#f1f5f3;font-weight:700}.leaflet-control-attribution{font-size:8px!important}.leaflet-control-zoom{border:0!important;box-shadow:0 10px 24px rgba(0,0,0,.12)!important}.leaflet-control-zoom a{border:0!important}
@media(max-width:1100px){.ht-home-layout{grid-template-columns:1fr}.ht-home-side{display:grid;grid-template-columns:1fr 1fr}.ht-mini-tip{grid-column:1/-1}.ht-activity-layout{grid-template-columns:1fr}.ht-activity-panel{display:grid;grid-template-columns:1fr 1fr}.ht-primary-metric,.ht-action-dock,.ht-note-compact{grid-column:1/-1}.ht-health-layout{grid-template-columns:1fr 1fr}.ht-session{grid-template-columns:48px 1.4fr repeat(2,.8fr)}.ht-session-metric:nth-child(n+5){display:none}}
@media(max-width:760px){
  .ht-topbar{padding:9px 10px}.ht-topbar-inner{min-height:60px;padding:0 12px;border-radius:18px}.ht-brand-mark{width:36px;height:36px;border-radius:12px;padding:8px}.ht-brand-copy strong{font-size:17px}.ht-brand-copy small{font-size:8px}.ht-gps-chip{display:none}.ht-install-top{width:38px;height:38px;padding:0;border-radius:12px;font-size:0}.ht-install-top span{font-size:20px;margin:auto}
  .ht-app-shell{display:block;padding:0 10px 94px}.ht-native-app{width:100%}.ht-bottom-nav{position:fixed;left:10px;right:10px;bottom:10px;top:auto;z-index:1400}.ht-bottom-inner{height:70px;display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:5px;border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 16px 46px rgba(14,50,34,.16);backdrop-filter:blur(20px)}.ht-bottom-nav button{height:60px;border-radius:16px}.ht-bottom-nav button b{font-size:8px}.ht-nav-icon{width:21px;height:21px}.ht-home-layout{display:block}.ht-home-side{display:none}.ht-home-head,.ht-screen-header{margin-top:4px;margin-bottom:15px}.ht-home-head h1,.ht-screen-header h1{font-size:29px}.ht-home-head p,.ht-screen-header p{font-size:11px}.ht-date-badge{width:50px;height:54px;border-radius:17px;font-size:20px}.ht-hero-card{min-height:205px;grid-template-columns:105px 1fr;padding:18px;border-radius:26px;gap:16px}.ht-ring{width:100px;height:100px}.ht-ring::before{inset:8px}.ht-ring b{font-size:23px}.ht-hero-copy h2{font-size:23px}.ht-hero-copy p{font-size:10px}.ht-hero-copy button{display:none}.ht-hero-orbit{display:none}.ht-quick-grid{grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.ht-quick-card{min-height:92px;padding:12px;border-radius:18px}.ht-qicon{width:31px;height:31px}.ht-quick-card b{font-size:20px}.ht-start-hero{margin-top:10px}.ht-section-title{margin-top:20px}.ht-session{grid-template-columns:44px 1fr auto;padding:12px}.ht-session-metric{display:none}.ht-session-metric:nth-of-type(3){display:block;text-align:right}.ht-mode-row{gap:7px;overflow:auto}.ht-mode{min-width:112px;grid-template-columns:36px 1fr;min-height:68px;border-radius:17px;padding:9px}.ht-mode>span{width:36px;height:36px;border-radius:12px}.ht-map-card{border-radius:24px}#ht-map{height:48vh;min-height:390px;max-height:520px}.ht-activity-panel{display:block}.ht-primary-metric{margin-top:10px;padding:18px;border-radius:23px}.ht-primary-metric b{font-size:48px}.ht-live-metrics,.ht-metric-strip{margin-top:9px}.ht-action-dock{margin-top:10px;position:sticky;bottom:86px;z-index:800}.ht-health-layout,.ht-more-layout{display:block}.ht-form-card,.ht-health-hero,.ht-settings-card,.ht-about-card{margin-top:10px}.ht-health-hero{min-height:190px;padding:21px;border-radius:25px}.ht-health-hero b{font-size:56px}.ht-heart-orb{width:78px;height:78px;border-radius:26px}.ht-sync-card{margin-top:10px}.ht-history-summary{gap:8px}.ht-history-summary>div{padding:14px;border-radius:18px}.ht-history-summary b{font-size:18px}.ht-screen-header .ht-text-btn{align-self:center}.ht-toast{bottom:96px}
}
@media(max-width:390px){.ht-topbar-inner{padding:0 10px}.ht-brand-copy small{display:none}.ht-home-head p,.ht-screen-header p{max-width:260px}.ht-hero-card{grid-template-columns:92px 1fr}.ht-ring{width:88px;height:88px}.ht-ring b{font-size:21px}.ht-hero-copy h2{font-size:21px}.ht-mode{min-width:104px}.ht-history-summary{grid-template-columns:1fr 1fr}.ht-history-summary>div:last-child{grid-column:1/-1}.ht-profile-grid{grid-template-columns:1fr}}


/* ===== HealthTrack v5 visual system / Bai Jamjuree ===== */
:root{--green:#18b86a;--green2:#087b46;--mint:#e7f8ef;--teal:#0b3b2a;--telegram:#229ED9;--cream:#fbfdfc;--softshadow:0 16px 44px rgba(18,58,40,.08)}
body{font-weight:500;letter-spacing:-.005em;background:#f4f8f6}
.ht-shell{background:
  radial-gradient(circle at 8% 0,rgba(75,214,139,.09),transparent 27%),
  radial-gradient(circle at 92% 15%,rgba(34,158,217,.055),transparent 24%),
  linear-gradient(180deg,#f8fbf9 0,#f1f6f3 100%)}
.ht-topbar{padding:12px 22px}.ht-topbar-inner{min-height:70px;border:1px solid rgba(221,236,228,.9);box-shadow:0 12px 40px rgba(18,58,40,.07)}
.ht-brand-copy strong{font-size:20px;font-weight:700;letter-spacing:-.02em}.ht-brand-copy small{font-size:9px;font-weight:600;letter-spacing:.16em}.ht-brand-mark{border-radius:15px;background:linear-gradient(145deg,#1bc273,#4edc92);box-shadow:0 14px 30px rgba(24,184,106,.24)}
.ht-top-actions{gap:9px}.ht-account-top,.ht-telegram-top{height:44px;border:1px solid #dfece5;background:#fff;border-radius:15px;padding:5px 11px 5px 6px;display:flex;align-items:center;gap:9px;color:var(--ink);box-shadow:0 7px 20px rgba(18,58,40,.05)}.ht-account-top{cursor:pointer}.ht-account-top img,.ht-avatar-fallback{width:32px;height:32px;border-radius:11px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#e2f7eb,#c7efda);color:#087b46;font-size:10px;font-weight:700}.ht-account-top span:not(.ht-avatar-fallback),.ht-telegram-top>span:last-child{display:flex;flex-direction:column;line-height:1.08}.ht-account-top b,.ht-telegram-top b{font-size:11px;font-weight:700}.ht-account-top small,.ht-telegram-top small{font-size:8px;color:#829188;margin-top:3px}.ht-tg-icon{width:32px;height:32px;border-radius:11px;background:#eaf7fd;color:#229ed9;display:grid;place-items:center;font-size:15px}.ht-install-top{height:44px;border-radius:15px;padding:0 17px;font-weight:700}
.ht-app-shell{grid-template-columns:88px minmax(0,1fr);gap:18px}.ht-bottom-inner{border-color:#e1ece6;background:rgba(255,255,255,.92);box-shadow:0 14px 38px rgba(18,58,40,.07)}.ht-bottom-nav button{height:68px}.ht-bottom-nav button.is-active{background:linear-gradient(145deg,#e4f8ed,#f9fffb);box-shadow:inset 0 0 0 1px #d2efdf}.ht-bottom-nav button b{font-size:9px;font-weight:600}
.ht-home-head h1,.ht-screen-header h1{font-weight:700;letter-spacing:-.025em}.ht-wave{display:inline-block;transform:rotate(-8deg)}.ht-eyebrow{font-weight:700;letter-spacing:.15em;color:#0a8b50}.ht-date-badge{font-weight:700;border-color:#dce9e2;box-shadow:0 12px 34px rgba(20,64,44,.06)}
.ht-hero-card{min-height:250px;border-radius:32px;background:linear-gradient(125deg,#09281c 0%,#0a3e29 45%,#0d6b3d 100%);box-shadow:0 26px 60px rgba(9,55,34,.18);border:1px solid rgba(255,255,255,.05)}.ht-hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(to right,transparent,black 45%,black)}.ht-hero-glow{width:420px;height:420px;right:-120px;top:-210px;background:radial-gradient(circle,rgba(94,235,157,.28),transparent 65%)}.ht-ring{background:conic-gradient(#79eba9 calc(var(--p)*1%),rgba(255,255,255,.10) 0);box-shadow:0 18px 40px rgba(0,0,0,.18)}.ht-ring::before{background:linear-gradient(145deg,#103827,#0b2b1e)}.ht-ring b{font-weight:700}.ht-hero-copy h2{font-weight:700;letter-spacing:-.02em}.ht-hero-copy button{font-family:inherit;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);font-weight:600}.ht-hero-chart{width:190px;height:120px;position:relative;align-self:center}.ht-hero-chart span{position:absolute;bottom:0;width:13px;border-radius:9px 9px 3px 3px;background:linear-gradient(to top,rgba(103,231,160,.25),rgba(134,244,183,.75))}.ht-hero-chart span:nth-child(1){left:5px;height:32%}.ht-hero-chart span:nth-child(2){left:34px;height:47%}.ht-hero-chart span:nth-child(3){left:63px;height:40%}.ht-hero-chart span:nth-child(4){left:92px;height:65%}.ht-hero-chart span:nth-child(5){left:121px;height:58%}.ht-hero-chart span:nth-child(6){left:150px;height:82%}.ht-hero-chart i{position:absolute;left:0;right:6px;top:20px;height:1px;background:linear-gradient(90deg,transparent,#79eba9,transparent);transform:rotate(-8deg);opacity:.6}
.ht-quick-card{border-color:#e0ebe5;border-radius:21px;box-shadow:0 10px 30px rgba(18,58,40,.04);transition:.2s}.ht-quick-card:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(18,58,40,.075)}.ht-qicon svg{width:18px;height:18px}.ht-qicon.mint svg{color:#118e52}.ht-qicon.orange svg{color:#e88831}.ht-qicon.blue svg{color:#3979d6}.ht-qicon.pink svg{color:#d84465}.ht-quick-card b{font-weight:700}.ht-start-hero{background:linear-gradient(120deg,#1cc271,#0d9b58);border:1px solid rgba(255,255,255,.2);box-shadow:0 16px 34px rgba(24,184,106,.18)}
.ht-side-card{border-color:#dfeae4;border-radius:28px;box-shadow:0 15px 40px rgba(18,58,40,.065)}.ht-account-overview{background:linear-gradient(160deg,#fff 15%,#f0fbf5 100%)}.ht-account-mini{display:flex;align-items:center;gap:13px;margin-top:18px}.ht-account-mini img,.ht-account-avatar{width:56px;height:56px;border-radius:18px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(145deg,#dff7e9,#bfeace);color:#087b46;font-size:15px;font-weight:700;box-shadow:0 10px 24px rgba(18,58,40,.08)}.ht-account-mini h3{font-size:18px;margin:0}.ht-account-mini p{margin:3px 0 0}.ht-cloud-status{display:flex;gap:10px;align-items:center;margin-top:17px;padding:12px 13px;border-radius:16px;background:rgba(255,255,255,.78);border:1px solid #e0ede6}.ht-cloud-status i{width:9px;height:9px;border-radius:50%;background:#1bc273;box-shadow:0 0 0 6px rgba(27,194,115,.10)}.ht-cloud-status span{display:flex;flex-direction:column}.ht-cloud-status b{font-size:10px}.ht-cloud-status small{font-size:8px;color:var(--muted);margin-top:2px}.ht-login-overview{background:linear-gradient(155deg,#ffffff 0,#f0faff 100%)}.ht-tg-orb{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;margin:20px 0 14px;background:linear-gradient(145deg,#38aee1,#168ccc);color:#fff;font-size:23px;box-shadow:0 15px 30px rgba(34,158,217,.22)}.ht-tg-cta{margin-top:16px;padding:11px 13px;border-radius:14px;background:#229ed9;color:#fff;display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:700}.ht-mini-tip{background:#f9fbfa;border-color:#e1ebe6}.ht-mini-tip>span{background:#e8f7ef;color:#0b8a4f;font-weight:700}
.ht-activity-panel,.ht-form-card,.ht-history-summary>div,.ht-settings-card,.ht-about-card{border-color:#dfeae4;box-shadow:0 12px 34px rgba(18,58,40,.055)}.ht-primary-metric{background:linear-gradient(150deg,#0c2c20,#0d4d30)}.ht-main-action{background:linear-gradient(145deg,#1cc271,#0d9857)}
.ht-cloud-pill{padding:9px 12px;border-radius:999px;background:#eaf8f0;border:1px solid #d6eee1;color:#0b824b;font-size:10px;font-weight:600}.ht-history-tabs{display:inline-flex;gap:4px;padding:4px;margin:0 0 12px;border-radius:14px;background:#eaf1ed}.ht-history-tabs button{border:0;background:transparent;color:#76867e;border-radius:11px;padding:9px 13px;font-size:10px;font-weight:600}.ht-history-tabs button.is-active{background:#fff;color:#113126;box-shadow:0 5px 15px rgba(18,58,40,.08)}.ht-history-tabs button:disabled{opacity:.45;cursor:not-allowed}.ht-cloud-session{border-left:3px solid #229ed9}

/* Account / Telegram */
.ht-account-guest{min-height:520px;display:grid;grid-template-columns:minmax(300px,.75fr) minmax(420px,1.25fr);overflow:hidden;border:1px solid #dfeae4;border-radius:32px;background:#fff;box-shadow:var(--shadow2)}.ht-account-visual{position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 40%,#38b8ed 0,#229ed9 30%,#147bad 72%,#0e5d87 100%)}.ht-account-visual::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:38px 38px}.ht-telegram-logo{width:118px;height:118px;border-radius:38px;display:grid;place-items:center;position:relative;z-index:2;background:rgba(255,255,255,.96);color:#229ed9;font-size:52px;box-shadow:0 26px 70px rgba(0,0,0,.22)}.ht-orbit{position:absolute;border:1px solid rgba(255,255,255,.22);border-radius:50%}.ht-orbit.o1{width:230px;height:230px}.ht-orbit.o2{width:340px;height:340px}.ht-account-copy{padding:58px;display:flex;flex-direction:column;justify-content:center}.ht-account-copy h2{font-size:38px;line-height:1.07;letter-spacing:-.025em;margin:5px 0 14px;font-weight:700}.ht-account-copy>p{max-width:620px;margin:0 0 24px;color:var(--muted);font-size:13px;line-height:1.7}.ht-telegram-login-big{display:grid;grid-template-columns:48px 1fr 18px;gap:13px;align-items:center;max-width:500px;padding:12px 14px;border-radius:18px;background:linear-gradient(135deg,#2aa8df,#168dcc);color:#fff;box-shadow:0 16px 32px rgba(34,158,217,.2)}.ht-telegram-login-big>span{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.15);display:grid;place-items:center;font-size:20px}.ht-telegram-login-big b{display:block;font-size:13px}.ht-telegram-login-big small{display:block;color:#d8f1fc;font-size:9px;margin-top:3px}.ht-telegram-login-big i{font-style:normal;font-size:25px}.ht-login-points{display:flex;flex-wrap:wrap;gap:8px 15px;margin-top:20px;color:#62756b;font-size:10px}.ht-config-warning{padding:16px;border-radius:17px;background:#fff7e4;border:1px solid #f0ddb0;display:flex;flex-direction:column;gap:4px}.ht-config-warning b{font-size:12px}.ht-config-warning span{font-size:10px;color:#7c6b45}
.ht-account-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:16px}.ht-profile-account-card,.ht-cloud-summary-card,.ht-account-settings-card{border:1px solid #dfeae4;border-radius:28px;background:#fff;box-shadow:var(--softshadow);overflow:hidden}.ht-profile-account-card{grid-row:span 2}.ht-profile-cover{height:145px;background:linear-gradient(125deg,#0a2d20,#0c5a36);position:relative}.ht-profile-cover::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 30%,rgba(95,234,157,.35),transparent 35%),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:auto,28px 28px}.ht-profile-main{padding:0 24px 20px;margin-top:-40px;position:relative;display:flex;align-items:flex-end;gap:16px}.ht-profile-photo{width:86px;height:86px;border-radius:27px;object-fit:cover;border:5px solid #fff;box-shadow:0 10px 28px rgba(0,0,0,.12)}.ht-profile-fallback{display:grid;place-items:center;background:#dff7ea;color:#087b46;font-size:18px;font-weight:700}.ht-profile-main h2{margin:4px 0 1px;font-size:24px}.ht-profile-main p{margin:0;color:var(--muted);font-size:10px}.ht-verified{font-size:8px;color:#0b8a50;font-weight:700;letter-spacing:.08em}.ht-account-actions{padding:16px 24px 24px;display:flex;gap:8px;flex-wrap:wrap}.ht-account-actions button,.ht-account-actions a{border:1px solid #dce9e2;background:#f8fbf9;color:#244438;border-radius:13px;padding:10px 12px;font-size:9px;font-weight:600}.ht-account-actions a{color:#c43855;background:#fff7f8;border-color:#f6dce2}.ht-cloud-summary-card{padding:22px}.ht-cloud-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.ht-cloud-summary>div{padding:14px;border-radius:17px;background:#f7faf8;border:1px solid #e5eee9}.ht-cloud-summary small{display:block;color:var(--muted);font-size:9px}.ht-cloud-summary b{display:block;font-size:21px;margin-top:4px}.ht-account-settings-card{padding:7px}.ht-setting-row{width:100%;border:0;background:#fff;display:grid;grid-template-columns:44px 1fr 18px;gap:11px;align-items:center;text-align:left;padding:13px;border-radius:17px;cursor:pointer}.ht-setting-row:hover{background:#f7faf8}.ht-setting-row+.ht-setting-row{border-top:1px solid #eef3f0}.ht-setting-row b{display:block;font-size:11px}.ht-setting-row small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.ht-setting-row i{font-style:normal;color:#94a39b;font-size:22px}.ht-danger-row b{color:#c23e59}.ht-danger-row .ht-setting-icon{background:#fff0f3;color:#d44261}.ht-account-security{margin-top:15px;padding:18px 20px;border:1px solid #dceae3;border-radius:22px;background:linear-gradient(145deg,#fff,#f7fbf9);display:flex;gap:12px;align-items:flex-start}.ht-account-security>span{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#e7f7ef}.ht-account-security b{font-size:11px}.ht-account-security p{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.55}

@media(max-width:1100px){.ht-hero-chart{display:none}.ht-account-guest{grid-template-columns:1fr 1.3fr}.ht-account-copy{padding:36px}.ht-account-grid{grid-template-columns:1fr}.ht-profile-account-card{grid-row:auto}}
@media(max-width:760px){
  .ht-top-actions .ht-account-top,.ht-top-actions .ht-telegram-top{width:38px;height:38px;padding:3px;border:0;background:transparent;box-shadow:none}.ht-top-actions .ht-account-top span:not(.ht-avatar-fallback),.ht-top-actions .ht-telegram-top>span:last-child{display:none}.ht-account-top img,.ht-avatar-fallback,.ht-tg-icon{width:36px;height:36px;border-radius:12px}.ht-install-top{display:none}
  .ht-app-shell{padding-bottom:96px}.ht-bottom-inner{border:1px solid #dce8e1}.ht-bottom-nav button b{font-size:8px}.ht-home-head h1,.ht-screen-header h1{font-size:30px;line-height:1.08}.ht-home-head p,.ht-screen-header p{font-size:11px;line-height:1.55}.ht-hero-card{min-height:210px}.ht-account-guest{display:block;min-height:0}.ht-account-visual{height:210px}.ht-telegram-logo{width:88px;height:88px;border-radius:29px;font-size:38px}.ht-orbit.o1{width:170px;height:170px}.ht-orbit.o2{width:245px;height:245px}.ht-account-copy{padding:24px}.ht-account-copy h2{font-size:27px}.ht-account-copy>p{font-size:11px}.ht-login-points{display:grid}.ht-account-grid{display:block}.ht-profile-account-card,.ht-cloud-summary-card,.ht-account-settings-card{margin-bottom:10px;border-radius:24px}.ht-profile-cover{height:115px}.ht-profile-photo{width:72px;height:72px;border-radius:23px}.ht-profile-main{margin-top:-34px;padding:0 17px 16px}.ht-profile-main h2{font-size:20px}.ht-account-actions{padding:12px 17px 18px}.ht-cloud-summary-card{padding:17px}.ht-account-security{margin-top:10px}.ht-cloud-pill{display:none}
}
