/*
Theme Name: HealthTrack Native PWA
Theme URI: https://health.begoling.com/
Author: HealthTrack
Description: Mobile-first PWA theo dõi GPS, quãng đường, vận động, BMI, BPM và lịch sử hoạt động.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: healthtrack-pro
*/
:root{
  --bg:#f4f7f5;--card:#fff;--ink:#102019;--muted:#718078;--line:#e4ebe7;
  --green:#16b86a;--green2:#0c8d50;--green-soft:#e8f9f0;--dark:#0c2118;--red:#ef486a;
  --shadow:0 16px 42px rgba(16,48,34,.08);--r:24px;--safe-bottom: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:Inter,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}
#wpadminbar{display:none!important}html.wp-toolbar{padding-top:0!important}body.admin-bar{margin-top:0!important}
.ht-shell{min-height:100vh;background:linear-gradient(180deg,#f7fbf8 0,#f2f6f4 44%,#f4f7f5 100%)}.ht-app-width{width:min(760px,100%);margin:0 auto;padding-left:18px;padding-right:18px}
.ht-topbar{position:sticky;top:0;z-index:1100;background:rgba(247,251,248,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(224,234,228,.9)}.ht-topbar-in{height:68px;display:flex;align-items:center;justify-content:space-between;gap:14px}.ht-brand{display:flex;align-items:center;gap:10px;min-width:0}.ht-brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,var(--green),#7de1aa);color:#fff;font-size:18px;box-shadow:0 10px 24px rgba(22,184,106,.26)}.ht-brand-copy{display:flex;flex-direction:column;line-height:1.05;min-width:0}.ht-brand-copy strong{font-size:17px;letter-spacing:-.02em}.ht-brand-copy small{font-size:10px;color:var(--muted);font-weight:750;margin-top:4px}.ht-top-actions{display:flex;align-items:center;gap:8px}.ht-gps-chip{display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:11px;color:#53655b;font-weight:800;white-space:nowrap}.ht-gps-chip i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(22,184,106,.11)}.ht-icon-btn{width:38px;height:38px;border:0;border-radius:13px;background:var(--dark);color:#fff;font-weight:900}
.ht-native-app{padding:18px 0 calc(94px + var(--safe-bottom))}.ht-screen{display:none;animation:htFade .18s ease}.ht-screen.is-active{display:block}@keyframes htFade{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}
.ht-home-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin:4px 0 18px}.ht-eyebrow{display:block;color:var(--green2);font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:5px}.ht-home-head h1,.ht-screen-header h1{margin:0;font-size:31px;letter-spacing:-.045em;line-height:1.05}.ht-home-head p{margin:7px 0 0;color:var(--muted);font-size:14px}.ht-date-badge{width:55px;height:58px;border-radius:18px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:23px;font-weight:900;line-height:1;box-shadow:0 10px 24px rgba(13,53,35,.05)}.ht-date-badge small{display:block;color:var(--muted);font-size:9px;letter-spacing:.08em;margin-top:-8px}
.ht-today-card{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:18px;padding:18px;border-radius:28px;background:linear-gradient(135deg,#0c2118,#123c2a);color:#fff;box-shadow:0 22px 48px rgba(9,42,28,.18);position:relative;overflow:hidden}.ht-today-card::after{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-95px;top:-110px;background:radial-gradient(circle,rgba(90,222,147,.24),rgba(90,222,147,0) 68%)}.ht-ring{--p:0;width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#4fe091 calc(var(--p)*1%),rgba(255,255,255,.12) 0);position:relative}.ht-ring::before{content:"";position:absolute;inset:9px;border-radius:50%;background:#112d21}.ht-ring>div{position:relative;z-index:1;text-align:center}.ht-ring b{display:block;font-size:27px;letter-spacing:-.04em}.ht-ring span{font-size:11px;color:#aad8c2}.ht-today-copy{position:relative;z-index:1}.ht-today-copy>span{font-size:10px;letter-spacing:.12em;color:#9ad7b8;font-weight:900}.ht-today-copy h2{margin:6px 0 5px;font-size:23px;letter-spacing:-.035em}.ht-today-copy p{margin:0;color:#b9d7c7;font-size:12px}.ht-today-copy p strong{color:#fff}
.ht-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.ht-quick-card{display:flex;align-items:center;gap:12px;min-height:83px;padding:14px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 26px rgba(15,55,37,.045)}.ht-qicon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:14px;background:var(--green-soft);font-size:19px}.ht-quick-card small{display:block;color:var(--muted);font-size:11px;margin-bottom:3px}.ht-quick-card b{font-size:21px;letter-spacing:-.025em}.ht-quick-card em{font-size:10px;font-style:normal;color:var(--muted);margin-left:4px}
.ht-start-hero{width:100%;border:0;margin-top:13px;padding:16px 16px;border-radius:22px;background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;display:grid;grid-template-columns:46px 1fr 22px;align-items:center;text-align:left;gap:12px;box-shadow:0 16px 34px rgba(22,184,106,.22)}.ht-play{width:46px;height:46px;border-radius:16px;background:rgba(255,255,255,.16);display:grid;place-items:center}.ht-start-hero b{display:block;font-size:17px}.ht-start-hero small{display:block;color:#d8f5e6;margin-top:3px}.ht-chevron{font-size:30px;font-weight:300;opacity:.8}
.ht-section-title{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:23px 1px 11px}.ht-section-title h2{font-size:19px;margin:0;letter-spacing:-.025em}.ht-section-title p{font-size:11px;color:var(--muted);margin:4px 0 0}.ht-text-btn{border:0;background:transparent;color:var(--green2);font-weight:900;font-size:12px;padding:6px}.ht-text-btn.danger{color:#c93253}.ht-home-recent{display:grid;gap:9px}.ht-empty-mini{padding:18px;border-radius:18px;border:1px dashed #d7e2dc;background:#fff;color:var(--muted);font-size:12px;text-align:center}.ht-health-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:18px;border-radius:22px;background:linear-gradient(135deg,#fff,#eef9f3);border:1px solid #dcece4}.ht-badge-soft{font-size:9px;letter-spacing:.1em;font-weight:900;color:var(--green2)}.ht-health-banner h3{margin:5px 0 3px;font-size:18px}.ht-health-banner p{margin:0;color:var(--muted);font-size:12px}
.ht-screen-header{display:flex;align-items:center;gap:12px;margin-bottom:15px}.ht-screen-header.simple{justify-content:space-between;align-items:end}.ht-screen-header .ht-back{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:14px;font-size:28px;line-height:1}.ht-screen-header h1{font-size:27px}.ht-live-dot{margin-left:auto;padding:9px 11px;border-radius:999px;background:#eaf9f1;color:#16804b;font-size:10px;font-weight:900;white-space:nowrap}.ht-live-dot::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:6px}
.ht-mode-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:11px}.ht-mode{border:1px solid var(--line);background:#fff;border-radius:17px;padding:12px 6px;color:#53645b}.ht-mode span{display:block;font-size:20px;margin-bottom:4px}.ht-mode b{font-size:11px}.ht-mode.is-active{border-color:#a9e4c3;background:#eaf9f1;color:#086f3e;box-shadow:0 9px 22px rgba(22,184,106,.08)}
.ht-map-card{position:relative;border-radius:24px;overflow:hidden;background:#e7efeb;border:1px solid var(--line);box-shadow:var(--shadow)}#ht-map{height:42vh;min-height:320px;max-height:500px}.ht-map-status,.ht-gps-accuracy{position:absolute;top:12px;z-index:500;padding:9px 11px;border-radius:12px;font-size:10px;font-weight:900;box-shadow:0 7px 18px rgba(0,0,0,.10)}.ht-map-status{left:12px;background:rgba(12,33,24,.9);color:#fff}.ht-gps-accuracy{right:12px;background:rgba(255,255,255,.95);color:#42584d}.ht-map-locate{position:absolute;right:12px;bottom:12px;z-index:500;width:44px;height:44px;border:1px solid #dfe8e3;border-radius:15px;background:#fff;color:#174b36;font-size:21px;box-shadow:0 10px 20px rgba(0,0,0,.11)}
.ht-live-metrics{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;margin-top:11px}.ht-live-metrics>div{min-height:82px;padding:13px;border-radius:18px;background:#fff;border:1px solid var(--line)}.ht-live-metrics small,.ht-metric-strip small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.ht-live-metrics b{font-size:19px;letter-spacing:-.03em}.ht-live-main b{font-size:32px}.ht-live-metrics span{font-size:10px;color:var(--muted);margin-left:3px}.ht-metric-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.ht-metric-strip>div{padding:13px;border-radius:17px;background:#fff;border:1px solid var(--line);position:relative}.ht-metric-strip>div>span{position:absolute;right:10px;top:10px}.ht-metric-strip b{display:block;font-size:16px}.ht-metric-strip em{display:block;font-size:9px;color:var(--muted);font-style:normal;margin-top:2px}.ht-hidden-state{display:none}
.ht-action-dock{display:grid;grid-template-columns:54px 1fr 54px;align-items:center;gap:12px;margin-top:13px;padding:11px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:0 16px 38px rgba(14,55,37,.09)}.ht-round-action{width:54px;height:54px;border-radius:18px;border:0;font-weight:900}.ht-round-action:disabled{opacity:.35}.ht-pause{background:#f1f4f2;color:#263a30}.ht-stop{background:#fff0f3;color:#bf2647}.ht-main-action{height:58px;border:0;border-radius:18px;background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 11px 22px rgba(22,184,106,.20)}.ht-main-action span{font-size:16px}.ht-main-action b{font-size:14px;letter-spacing:.08em}.ht-main-action:disabled{opacity:.55}.ht-note-compact{margin:10px 4px 0;color:var(--muted);font-size:10px;line-height:1.5;text-align:center}
.ht-health-hero{display:flex;justify-content:space-between;align-items:center;padding:22px;border-radius:26px;background:linear-gradient(135deg,#0d251b,#16452f);color:#fff;box-shadow:0 20px 46px rgba(10,45,30,.18)}.ht-health-hero small{display:block;color:#9dd8b9;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.ht-health-hero b{display:block;font-size:45px;letter-spacing:-.05em;margin:2px 0}.ht-health-hero span{font-size:12px;color:#c4e1d2}.ht-heart-orb{width:76px;height:76px;border-radius:26px;display:grid;place-items:center;background:linear-gradient(135deg,#20b56c,#69d99b);font-size:31px;box-shadow:0 13px 30px rgba(32,181,108,.28)}
.ht-form-card{margin-top:11px;padding:18px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 26px rgba(15,55,37,.04)}.ht-form-card h2{font-size:17px;margin:0 0 14px}.ht-card-title{display:flex;justify-content:space-between;align-items:flex-start}.ht-card-title h2{margin:0}.ht-card-title p{margin:4px 0 12px;color:var(--muted);font-size:11px}.ht-heart-dot{width:34px;height:34px;border-radius:12px;background:#fff0f3;color:#e83f62;display:grid;place-items:center}.ht-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ht-field label{display:block;font-size:11px;color:var(--muted);font-weight:800;margin-bottom:6px}.ht-input-unit{display:flex;align-items:center;border:1px solid var(--line);border-radius:15px;background:#fafcfb;overflow:hidden}.ht-input-unit input{min-width:0;flex:1;border:0;background:transparent;padding:13px 12px;outline:0}.ht-input-unit span{padding-right:12px;color:var(--muted);font-size:11px}.ht-last-heart{padding:15px;border-radius:18px;background:#fff7f9;border:1px solid #ffe1e8}.ht-last-heart small{display:block;color:#9d6270;font-size:10px}.ht-last-heart b{display:block;font-size:30px;letter-spacing:-.04em;margin-top:3px}.ht-last-heart span{font-size:10px;color:#a77a85}.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:none}.ht-btn-primary-mini{border:0;border-radius:14px;padding:0 18px;background:var(--green);color:#fff;font-weight:900}.ht-toggle{display:flex;align-items:flex-start;gap:11px}.ht-toggle input{margin-top:3px}.ht-toggle span{display:flex;flex-direction:column}.ht-toggle b{font-size:13px}.ht-toggle small{color:var(--muted);font-size:10px;margin-top:3px}.ht-disclaimer{margin-top:11px;padding:14px;border-radius:18px;background:#fff8e8;border:1px solid #f2e0af;color:#755f2c;font-size:10px;line-height:1.55}
.ht-history-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.ht-history-summary>div{padding:13px;border-radius:18px;background:#fff;border:1px solid var(--line)}.ht-history-summary small{display:block;color:var(--muted);font-size:9px;margin-bottom:4px}.ht-history-summary b{font-size:17px}.ht-history-list{display:grid;gap:9px}.ht-session{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:10px;padding:13px;border-radius:20px;background:#fff;border:1px solid var(--line)}.ht-session-ico{width:46px;height:46px;border-radius:16px;background:var(--green-soft);display:grid;place-items:center;font-size:19px}.ht-session-title b{display:block;font-size:14px}.ht-session-title small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.ht-session-metric{display:none}.ht-session-metric:nth-of-type(3){display:block;text-align:right}.ht-session-metric span{display:block;font-size:9px;color:var(--muted)}.ht-session-metric b{font-size:14px}.ht-empty{padding:34px 18px;border:1px dashed #d5e0da;border-radius:20px;background:#fff;text-align:center;color:var(--muted);font-size:12px}
.ht-settings-card{overflow:hidden;border-radius:22px;background:#fff;border:1px solid var(--line)}.ht-settings-card button{width:100%;border:0;background:#fff;display:grid;grid-template-columns:42px 1fr 18px;align-items:center;gap:11px;text-align:left;padding:15px 16px;border-bottom:1px solid #edf1ef}.ht-settings-card button:last-child{border-bottom:0}.ht-settings-card button>span{width:42px;height:42px;border-radius:14px;background:var(--green-soft);display:grid;place-items:center;font-size:18px}.ht-settings-card b{display:block;font-size:13px}.ht-settings-card small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.ht-settings-card i{font-style:normal;font-size:25px;color:#9aaba2}.ht-about-card{text-align:center;margin-top:13px;padding:26px 18px;border-radius:24px;background:#fff;border:1px solid var(--line)}.ht-brand-mark.big{width:58px;height:58px;border-radius:19px;margin:0 auto 10px;font-size:24px}.ht-about-card h2{margin:0;font-size:20px}.ht-about-card p{margin:5px 0;color:var(--muted);font-size:11px}.ht-about-card small{font-size:9px;color:#9aa8a1}
.ht-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:1200;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(18px);padding-bottom:var(--safe-bottom)}.ht-bottom-inner{height:72px;display:grid;grid-template-columns:repeat(5,1fr);padding-left:6px;padding-right:6px}.ht-bottom-nav button{border:0;background:transparent;color:#89968f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative}.ht-bottom-nav button span{font-size:20px;line-height:1}.ht-bottom-nav button b{font-size:9px}.ht-bottom-nav button.is-active{color:var(--green2)}.ht-bottom-nav button.is-active::before{content:"";position:absolute;top:5px;width:32px;height:3px;border-radius:4px;background:var(--green)}
.ht-toast{position:fixed;left:50%;bottom:90px;z-index:2000;transform:translate(-50%,16px);opacity:0;pointer-events:none;background:#0d2118;color:#fff;padding:11px 14px;border-radius:13px;font-size:11px;font-weight:800;box-shadow:0 14px 34px rgba(0,0,0,.20);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(--green-soft);color:var(--green2);font-weight:900}.ht-install-actions button{border:0;border-radius:13px;padding:11px 14px;background:#f1f5f3;font-weight:900}
.leaflet-control-attribution{font-size:9px!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(min-width:761px){body{background:#eaf1ed}.ht-shell{width:760px;margin:0 auto;box-shadow:0 0 70px rgba(12,42,29,.12)}.ht-topbar,.ht-bottom-nav{left:50%;right:auto;width:760px;transform:translateX(-50%)}.ht-native-app{min-height:100vh}.ht-app-width{padding-left:24px;padding-right:24px}.ht-quick-grid{grid-template-columns:repeat(4,1fr)}.ht-quick-card{display:block;min-height:105px}.ht-qicon{margin-bottom:10px}.ht-map-card #ht-map{height:460px}.ht-metric-strip{grid-template-columns:repeat(4,1fr)}}
@media(max-width:430px){.ht-app-width{padding-left:13px;padding-right:13px}.ht-topbar-in{height:62px}.ht-gps-chip{display:none}.ht-home-head h1{font-size:28px}.ht-date-badge{width:50px;height:54px}.ht-today-card{grid-template-columns:96px 1fr;padding:15px}.ht-ring{width:90px;height:90px}.ht-ring b{font-size:23px}.ht-today-copy h2{font-size:20px}.ht-live-metrics{grid-template-columns:1.2fr 1fr}.ht-live-metrics>div:nth-child(3){grid-column:1/-1;min-height:auto}.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}.ht-mode{padding:10px 4px}.ht-mode b{font-size:10px}}
