/* Health OS v1.3 Mobile UX */
/* Health OS UI v0.9.2 - cache-safe consolidated stylesheet */
500;600;700;800&display=swap');
:root{
 --teal:#00C9A7;--cyan:#16C7E8;--blue:#2D8CFF;--purple:#6E5BFF;
 --ink:#0E1526;--muted:#667085;--bg:#F5F7FB;--card:#fff;--line:#E6EAF2;--soft:#F0F4FA;
 --shadow:0 14px 36px rgba(14,21,38,.065);
 --gradient:linear-gradient(135deg,var(--teal) 0%,var(--blue) 55%,var(--purple) 100%);
}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:radial-gradient(circle at 10% -10%,rgba(22,199,232,.10),transparent 30%),var(--bg)}
a{color:inherit;text-decoration:none}
.shell{max-width:1180px;margin:auto;padding:22px 22px 64px}

.app-header{display:flex;align-items:center;justify-content:space-between;gap:24px;position:sticky;top:0;z-index:20;padding:12px 0 14px;background:rgba(245,247,251,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.brand{display:flex;align-items:center;gap:13px;min-width:0}
.brand-icon{width:56px;height:56px;border-radius:15px;display:block;box-shadow:0 10px 24px rgba(45,140,255,.16);flex:0 0 auto}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-title{font-size:1.8rem;font-weight:800;letter-spacing:-.045em;line-height:1;white-space:nowrap}
.brand-os{background:var(--gradient);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand-subtitle{font-size:.72rem;text-transform:uppercase;letter-spacing:.15em;color:var(--muted);font-weight:600;margin-top:5px;white-space:nowrap}
.nav{display:flex;gap:6px;align-items:center}
.nav a{padding:10px 13px;border-radius:12px;color:var(--muted);font-weight:650;font-size:.88rem}
.nav a:hover,.nav a.active{background:#fff;color:var(--ink);box-shadow:0 5px 18px rgba(14,21,38,.05)}

.hero-score{background:#0E1526;color:#fff;border-radius:26px;padding:26px;display:grid;grid-template-columns:1.45fr .8fr;gap:24px;align-items:center;overflow:hidden;position:relative;margin:14px 0 16px;box-shadow:0 18px 44px rgba(14,21,38,.13)}
.hero-score:after{content:"";position:absolute;width:420px;height:420px;right:-170px;top:-180px;border-radius:50%;background:radial-gradient(circle,rgba(22,199,232,.26),rgba(45,140,255,.12) 36%,rgba(110,91,255,.06) 58%,transparent 72%)}
.hero-score .copy,.score-wrap{position:relative;z-index:2}
.hero-kicker,.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;font-weight:700;color:#98A2B3}
.hero-score h1{margin:6px 0 8px;font-size:clamp(2rem,5vw,3.1rem);letter-spacing:-.05em;line-height:1.02}
.hero-score p{margin:0;color:#B8C0CF;max-width:650px;line-height:1.5}
.score-wrap{display:flex;justify-content:flex-end}
.score-pill{min-width:150px;padding:18px 20px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);text-align:center}
.score-pill strong{display:block;font-size:2.6rem;letter-spacing:-.05em;line-height:1}.score-pill span{display:block;margin-top:6px;font-size:.73rem;color:#B8C0CF}

.insight-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0 18px}
.insight{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 17px;box-shadow:0 7px 22px rgba(14,21,38,.035)}
.insight small{display:block;color:var(--muted);font-size:.72rem;font-weight:600}
.insight strong{display:block;font-size:1.22rem;margin-top:6px;letter-spacing:-.03em}
.trend-up{color:#079F83}.trend-down{color:#B54708}.trend-flat{color:var(--muted)}

.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.metric{background:var(--card);border:1px solid var(--line);border-radius:21px;padding:19px;box-shadow:var(--shadow);min-height:145px;position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.metric:hover{transform:translateY(-2px);box-shadow:0 18px 46px rgba(14,21,38,.085)}
.metric:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;right:-48px;top:-55px;background:linear-gradient(135deg,rgba(0,201,167,.08),rgba(110,91,255,.08))}
.metric-label{font-size:.8rem;color:var(--muted);font-weight:650}.metric-value{font-size:2rem;line-height:1;font-weight:800;letter-spacing:-.045em;margin-top:14px;position:relative;z-index:1}
.metric-sub{font-size:.8rem;color:var(--muted);margin-top:7px}.progress{height:7px;background:#EEF1F6;border-radius:999px;margin-top:17px;overflow:hidden}.progress span{display:block;height:100%;background:var(--gradient);border-radius:999px}

.activity-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:21px;box-shadow:var(--shadow);margin:20px 0 26px}
.activity-card h2,.timeline-section h2{font-size:1.1rem;margin:0 0 15px;letter-spacing:-.02em}
.activity-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.activity-item{background:var(--soft);border-radius:15px;padding:14px;min-width:0}
.activity-icon{font-size:1.08rem}.activity-item strong{display:block;font-size:1.08rem;margin-top:7px}.activity-item span{display:block;font-size:.76rem;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}

.timeline-section{margin-top:26px}.timeline{display:flex;flex-direction:column;gap:9px}
.timeline-event{display:grid;grid-template-columns:58px 42px minmax(0,1fr);gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px 15px;box-shadow:0 7px 20px rgba(14,21,38,.03);transition:transform .2s ease,box-shadow .2s ease;animation:fadeUp .3s ease both}
.timeline-event:hover{transform:translateY(-1px);box-shadow:0 13px 34px rgba(14,21,38,.06)}
.timeline-time{font-size:.78rem;color:var(--muted);font-weight:650;padding-top:8px}.timeline-symbol{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,rgba(0,201,167,.12),rgba(45,140,255,.13),rgba(110,91,255,.12));display:grid;place-items:center}
.timeline-title{font-size:.92rem;font-weight:700}.timeline-summary{font-size:.86rem;color:#475467;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.badge{display:inline-flex;margin-left:7px;font-size:.66rem;padding:3px 7px;border-radius:999px;background:#FFF4CE;color:#7A5B00}

.daily-report-v2{margin-top:28px;background:#0E1526;color:#fff;border-radius:24px;padding:24px;box-shadow:0 18px 46px rgba(14,21,38,.14);position:relative;overflow:hidden}
.daily-report-v2:before{content:"";position:absolute;right:-120px;bottom:-160px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(45,140,255,.20),rgba(110,91,255,.06) 48%,transparent 70%)}
.report-top{display:flex;justify-content:space-between;gap:22px;align-items:center;position:relative}.section-kicker{font-size:.7rem;text-transform:uppercase;letter-spacing:.13em;color:#98A2B3;font-weight:700}
.daily-report-v2 h2{font-size:1.65rem;letter-spacing:-.035em;margin:5px 0 7px}.report-summary{color:#B8C0CF;margin:0;font-size:.87rem}
.consistency-ring{width:102px;height:102px;border-radius:50%;background:conic-gradient(var(--teal) 0 calc(var(--score)*1%),rgba(255,255,255,.10) calc(var(--score)*1%) 100%);display:grid;place-items:center;flex:0 0 auto}
.consistency-ring>div{width:75px;height:75px;border-radius:50%;background:#111A2E;display:flex;flex-direction:column;align-items:center;justify-content:center}.consistency-ring strong{font-size:1.25rem}.consistency-ring span{font-size:.6rem;color:#98A2B3}
.highlight-list{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;position:relative}.highlight-pill{font-size:.76rem;color:#D5DAE4;background:rgba(255,255,255,.07);padding:8px 10px;border-radius:999px}
.report-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:13px;position:relative}.report-card-v2{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07);border-radius:17px;padding:17px}
.report-card-v2 h3{font-size:.88rem;margin:0 0 11px}.report-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:.8rem;color:#B8C0CF}.report-row strong{color:#fff;text-align:right}.report-row.total{border-bottom:0;padding-top:12px}
.habit-check{display:flex;gap:9px;align-items:center;padding:7px 0;font-size:.8rem;color:#98A2B3}.habit-check.done{color:#fff}.check-dot{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.08);font-size:.7rem}.habit-check.done .check-dot{background:linear-gradient(135deg,var(--teal),var(--blue))}

.calendar-card{margin-top:26px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:21px;box-shadow:var(--shadow)}
.calendar-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px}.calendar-head h2{margin:4px 0 0;font-size:1.16rem}.calendar-link{font-size:.8rem;color:var(--blue);font-weight:700}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.calendar-weekdays{margin:17px 0 8px}.calendar-weekdays span{text-align:center;font-size:.68rem;color:var(--muted);font-weight:700}
.cal-day,.cal-empty{aspect-ratio:1;border-radius:11px;display:grid;place-items:center;font-size:.76rem;font-weight:700}.cal-day{background:#F2F4F7;color:#667085}.cal-day.low{background:#EAF6FB;color:#2978A0}.cal-day.good{background:#E8EEFF;color:#4C5ECF}.cal-day.great{background:linear-gradient(135deg,rgba(0,201,167,.18),rgba(45,140,255,.17),rgba(110,91,255,.17));color:#21305F}.cal-day.today{outline:2px solid var(--blue);outline-offset:2px}
.calendar-legend{display:flex;flex-wrap:wrap;gap:11px;margin-top:13px;font-size:.7rem;color:var(--muted)}.calendar-legend span{display:flex;align-items:center;gap:6px}.calendar-legend i{width:9px;height:9px;border-radius:3px;background:#F2F4F7}.calendar-legend i.low{background:#EAF6FB}.calendar-legend i.good{background:#E8EEFF}.calendar-legend i.great{background:linear-gradient(135deg,var(--teal),var(--blue),var(--purple))}

.history-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:16px 0 20px}.history-heading h1{margin:4px 0 0;font-size:clamp(2rem,5vw,3.1rem);letter-spacing:-.05em}
.date-nav{display:flex;gap:8px}.date-nav a{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 13px;font-weight:650}.empty{background:#fff;border:1px solid var(--line);border-radius:20px;padding:38px;text-align:center;color:var(--muted)}
@keyframes fadeUp{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:900px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.hero-score{grid-template-columns:1fr}.score-wrap{justify-content:flex-start}.insight-strip{grid-template-columns:1fr}}
@media(max-width:680px){
 .shell{padding:14px 14px 44px}.app-header{align-items:center;gap:10px}.brand-icon{width:46px;height:46px;border-radius:13px}.brand-title{font-size:1.42rem}.brand-subtitle{font-size:.58rem;letter-spacing:.11em}
 .nav a{padding:9px 10px;font-size:.8rem}.hero-score{padding:21px;border-radius:22px}.score-pill{min-width:130px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{min-height:128px;padding:15px}.metric-value{font-size:1.65rem}
 .activity-grid{grid-template-columns:1fr 1fr}.timeline-event{grid-template-columns:42px 34px minmax(0,1fr);gap:9px;padding:11px}.timeline-symbol{width:32px;height:32px}.timeline-time{font-size:.72rem}
 .report-top{align-items:flex-start}.consistency-ring{width:84px;height:84px}.consistency-ring>div{width:62px;height:62px}.report-columns{grid-template-columns:1fr}.calendar-card{padding:16px}.calendar-grid,.calendar-weekdays{gap:5px}
 .history-heading{align-items:flex-start;flex-direction:column}
}
@media(max-width:420px){.brand-subtitle{display:none}.metrics{grid-template-columns:1fr}.activity-grid{grid-template-columns:1fr 1fr}}

/* Health OS v1.0 analytics UI */
.week-bars{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;align-items:end;min-height:220px}
.week-day{display:flex;flex-direction:column;align-items:center;gap:8px}
.week-score{font-size:.75rem;color:var(--muted);font-weight:700}
.week-bar{height:150px;width:100%;max-width:54px;background:#EEF1F6;border-radius:14px;display:flex;align-items:flex-end;overflow:hidden}
.week-bar span{display:block;width:100%;background:var(--gradient);border-radius:14px 14px 0 0;min-height:2px}
.week-label{font-size:.72rem;color:var(--muted);font-weight:700}
.insights-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.insight-note{padding:13px 14px;border-radius:14px;background:var(--soft);color:#344054;line-height:1.45}
.measure-list{display:flex;flex-direction:column}
.measure-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.88rem}
.measure-row:last-child{border-bottom:0}.measure-row span{color:var(--muted)}
.metric-sub.up{color:#079F83}.metric-sub.down{color:#B54708}.metric-sub.flat{color:var(--muted)}
@media(max-width:680px){.week-bars{gap:6px}.week-bar{height:115px}.nav{overflow-x:auto;max-width:100%;padding-bottom:2px}.nav a{white-space:nowrap}}

/* Timeline contextual insights */
.timeline-insight{margin-top:10px;border-top:1px solid var(--line);padding-top:9px}
.timeline-insight summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;color:#526075;font-size:.78rem;font-weight:700;border-radius:10px;padding:2px 4px;user-select:none}
.timeline-insight summary::-webkit-details-marker{display:none}
.timeline-insight summary:hover{color:var(--blue)}
.insight-label{display:inline-flex;align-items:center;gap:5px}
.insight-chevron{font-size:1rem;transition:transform .2s ease}
.timeline-insight[open] .insight-chevron{transform:rotate(180deg)}
.timeline-insight-body{margin:5px 0 2px;padding:12px 13px;border-radius:13px;background:#F6F8FC;border:1px solid #E9EDF4;color:#344054;font-size:.82rem;line-height:1.5}
.timeline-insight-body strong{display:block;margin-bottom:4px;color:var(--ink);font-size:.82rem}
.timeline-insight-body p{margin:0}
.timeline-insight.positive .timeline-insight-body{background:rgba(0,201,167,.07);border-color:rgba(0,201,167,.18)}
.timeline-insight.attention .timeline-insight-body{background:#FFF8ED;border-color:#FCE2B6}
.timeline-insight.attention summary{color:#9A6700}
@media(max-width:680px){.timeline-insight summary{min-height:42px}.timeline-insight-body{padding:11px 12px}}


/* Health OS v1.2 Insight Engine */
.timeline-insight.good summary{color:#087F6B}
.timeline-insight.good .timeline-insight-body{
  background:rgba(0,201,167,.07);
  border-color:rgba(0,201,167,.18)
}
.timeline-insight.achievement summary{color:#3157C8}
.timeline-insight.achievement .timeline-insight-body{
  background:linear-gradient(135deg,rgba(0,201,167,.07),rgba(45,140,255,.07),rgba(110,91,255,.07));
  border-color:rgba(45,140,255,.18)
}
.timeline-insight.improve summary{color:#9A6700}
.timeline-insight.improve .timeline-insight-body{
  background:#FFF9E9;
  border-color:#F6E1A7
}
.timeline-insight.attention summary{color:#B42318}
.timeline-insight.attention .timeline-insight-body{
  background:#FFF3F1;
  border-color:#F7C9C4
}
.timeline-insight.observation summary{color:#526075}
.timeline-insight.observation .timeline-insight-body{
  background:#F6F8FC;
  border-color:#E9EDF4
}
.timeline-insight-body strong{letter-spacing:-.01em}

:root{--tap:44px}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
button,input,select,textarea{font:inherit}
a,button{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid rgba(45,140,255,.38);outline-offset:3px}
.menu-toggle{display:none}
.nav{display:flex;align-items:center;gap:6px}
.nav-main{display:flex;align-items:center;gap:6px}
.nav-secondary{display:flex;align-items:center;margin-left:4px;padding-left:10px;border-left:1px solid var(--line)}
.backup-link{color:var(--muted)!important}
.cal-day{min-height:40px}
.date-nav a,.nav a{min-height:var(--tap);display:inline-flex;align-items:center;justify-content:center}
@supports(padding:max(0px)){.shell{padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right));padding-bottom:max(64px,env(safe-area-inset-bottom))}.app-header{padding-top:max(12px,env(safe-area-inset-top))}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

@media(max-width:680px){
body.nav-open{overflow:hidden}
.shell{padding:10px 14px max(44px,env(safe-area-inset-bottom))}
.app-header{min-height:64px;padding:8px 0;margin-bottom:10px;align-items:center;position:sticky;top:0;z-index:100;background:rgba(245,247,251,.96);border-bottom:1px solid rgba(230,234,242,.8)}
.brand{gap:10px}.brand-icon{width:43px;height:43px;border-radius:12px}.brand-title{font-size:1.42rem}.brand-subtitle{display:none}
.menu-toggle{margin-left:auto;width:44px;height:44px;padding:0;border:0;border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(14,21,38,.06);display:grid;place-items:center;color:var(--ink);cursor:pointer;position:relative;z-index:102}
.menu-toggle-lines{width:19px;height:16px;display:flex;flex-direction:column;justify-content:space-between}.menu-toggle-lines i{height:2px;width:100%;border-radius:999px;background:currentColor;display:block;transition:transform .2s ease,opacity .2s ease}
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1){transform:translateY(7px) rotate(45deg)}.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2){opacity:0}.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav{display:none;position:absolute;left:-2px;right:-2px;top:calc(100% + 3px);padding:10px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.985);box-shadow:0 24px 60px rgba(14,21,38,.16);z-index:101}
.nav.is-open{display:block;animation:navDrop .18s ease both}.nav-main,.nav-secondary{display:flex;flex-direction:column;align-items:stretch;gap:3px}.nav-secondary{margin:8px 0 0;padding:8px 0 0;border-left:0;border-top:1px solid var(--line)}
.nav a{width:100%;justify-content:flex-start;padding:11px 13px;min-height:46px;border-radius:12px;font-size:.92rem;font-weight:650}.nav a.active,.nav a[aria-current="page"]{background:linear-gradient(135deg,rgba(0,201,167,.09),rgba(45,140,255,.09),rgba(110,91,255,.08));color:var(--ink);box-shadow:none}.backup-link:before{content:"↓";margin-right:9px;color:var(--blue);font-weight:800}
@keyframes navDrop{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.hero-score{grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:start!important;padding:18px!important;border-radius:21px!important;margin:10px 0 12px!important}.hero-score h1{font-size:1.72rem!important;line-height:1.05;margin:4px 0 5px!important}.hero-score p{font-size:.82rem;line-height:1.4}.hero-kicker{font-size:.65rem}.score-wrap{justify-content:flex-end!important}.score-pill{min-width:88px!important;padding:12px 10px!important;border-radius:16px!important}.score-pill strong{font-size:1.8rem!important}.score-pill span{font-size:.57rem!important;line-height:1.2;margin-top:4px!important}
.insight-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin:10px 0 14px!important;padding:6px!important;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 7px 22px rgba(14,21,38,.035)}.insight{border:0!important;border-radius:0!important;box-shadow:none!important;padding:9px 8px!important;min-width:0}.insight+.insight{border-left:1px solid var(--line)!important}.insight small{font-size:.59rem!important;line-height:1.25;min-height:30px}.insight strong{font-size:1rem!important;margin-top:4px!important;overflow-wrap:anywhere}
.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important}.metric{min-height:124px!important;padding:15px!important;border-radius:18px!important}.metric-value{font-size:1.65rem!important;margin-top:11px!important}.metric-sub{font-size:.72rem!important;line-height:1.3}.progress{margin-top:13px!important}
.activity-card{padding:16px!important;border-radius:19px!important;margin:14px 0 20px!important}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.activity-item{padding:13px!important}.activity-item strong{font-size:1.08rem!important}.activity-item span{font-size:.72rem!important;line-height:1.35}
.timeline-section{margin-top:20px!important}.timeline-event{position:relative;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;padding:13px!important;border-radius:16px!important}.timeline-time{position:absolute!important;right:13px;top:14px;padding:0!important;font-size:.69rem!important}.timeline-symbol{grid-column:1;grid-row:1;width:34px!important;height:34px!important;border-radius:11px!important}.timeline-event>div:last-child{grid-column:2;grid-row:1;min-width:0}.timeline-title{padding-right:48px;font-size:.9rem!important;min-height:20px}.timeline-summary{font-size:.84rem!important;line-height:1.48!important}.timeline-insight{margin-top:8px!important}.timeline-insight summary{min-height:44px!important;width:100%;padding:3px 2px!important}
.daily-report-v2{padding:18px!important;border-radius:21px!important;margin-top:22px!important}.report-top{gap:12px!important;align-items:flex-start!important}.daily-report-v2 h2{font-size:1.35rem!important}.report-summary{font-size:.78rem!important;line-height:1.45}.consistency-ring{width:74px!important;height:74px!important}.consistency-ring>div{width:55px!important;height:55px!important}.consistency-ring strong{font-size:1rem!important}.consistency-ring span{font-size:.5rem!important}.highlight-list{display:flex!important;flex-direction:column!important;gap:0!important;margin:14px 0!important}.highlight-pill{background:transparent!important;border-radius:0!important;padding:7px 0!important;font-size:.76rem!important;border-bottom:1px solid rgba(255,255,255,.07)}.highlight-pill:last-child{border-bottom:0}.report-columns{grid-template-columns:1fr!important}
.calendar-card{padding:15px!important;border-radius:19px!important;margin-top:20px!important}.calendar-head{align-items:center!important}.calendar-weekdays,.calendar-grid{gap:4px!important}.cal-day,.cal-empty{min-height:40px!important;aspect-ratio:auto!important;border-radius:10px!important;font-size:.72rem!important}.calendar-legend{gap:8px!important;font-size:.65rem!important}
.history-heading{margin:10px 0 16px!important;gap:12px!important}.date-nav a{min-width:44px;min-height:44px;padding:9px 11px!important}
.week-bars{gap:5px!important}.week-bar{height:108px!important;max-width:42px!important}.week-score,.week-label{font-size:.64rem!important}
.measure-row{min-height:44px;align-items:center}
}
@media(max-width:339px){.metrics{grid-template-columns:1fr!important}.hero-score{grid-template-columns:1fr!important}.score-wrap{justify-content:flex-start!important}.insight-strip{overflow-x:auto;grid-template-columns:repeat(3,105px)!important}}


/* Health OS v1.3.1 - restore v1.2 visual identity */
html, body{
  background-color:#F5F7FB !important;
}
body{
  background:
    radial-gradient(circle at 10% -10%, rgba(22,199,232,.10), transparent 30%),
    #F5F7FB !important;
  color:#0E1526;
}
.shell{background:transparent !important}
.app-header{background:rgba(245,247,251,.92) !important}
.metric,
.activity-card,
.timeline-event,
.calendar-card,
.insight-strip,
.empty{background:#FFFFFF !important}
.activity-item,
.insight-note{background:#F0F4FA}
.daily-report-v2,
.hero-score{background:#0E1526 !important}

@media(max-width:680px){
  body{
    background:
      radial-gradient(circle at 10% -6%, rgba(22,199,232,.09), transparent 28%),
      #F5F7FB !important;
  }
  .app-header{background:rgba(245,247,251,.96) !important}
  .nav{background:rgba(255,255,255,.985) !important}
  .insight-strip{background:#FFFFFF !important}
}


/* =========================================================
   Health OS v1.3.2 - header + progress visual polish
   ========================================================= */

/* Uniform header surface.
   Prevents the page radial gradient from showing only behind the logo. */
.app-header{
  background:#F5F7FB !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* Keep the brand itself completely transparent. */
.brand,
.brand-copy{
  background:transparent !important;
}

/* Progress tracks */
.progress{
  position:relative;
  z-index:2;
  width:100%;
  height:7px !important;
  background:#E9EDF4 !important;
  border-radius:999px;
  overflow:hidden;
}

/* Explicit app gradient rather than relying only on a CSS variable. */
.progress > span{
  display:block !important;
  height:100% !important;
  min-height:7px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    #00C9A7 0%,
    #2D8CFF 58%,
    #6E5BFF 100%
  ) !important;
  box-shadow:0 0 10px rgba(45,140,255,.15);
  transition:width .35s ease;
}

/* Make a non-zero progress value visually detectable even when very small. */
.progress > span[style*="width:0."]{
  min-width:3px;
}

@media(max-width:680px){
  .app-header{
    background:#F5F7FB !important;
  }
}


/* =========================================================
   Health OS v1.3.3 - header surface + footer backup
   ========================================================= */

/*
 * Header surface:
 * The previous visual seam came from multiple stacked backgrounds
 * (page gradient + sticky header + brand area). We remove all child
 * backgrounds and paint one single uniform header surface.
 */
.app-header{
  background:#F5F7FB !important;
  background-image:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:none !important;
  isolation:isolate;
}

.app-header::before,
.app-header::after{
  content:none !important;
  display:none !important;
}

.brand,
.brand:hover,
.brand:focus,
.brand-copy,
.brand-title,
.brand-subtitle{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
}

/* Preserve only the OS text gradient after clearing brand backgrounds. */
.brand-os{
  background:linear-gradient(135deg,#00C9A7 0%,#2D8CFF 55%,#6E5BFF 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
}

/* Navigation stays on same header plane. */
.nav,
.nav-main{
  background:transparent;
}

/* Old backup navigation styles are intentionally disabled. */
.nav-secondary,
.backup-link{
  display:none !important;
}

/* Footer */
.app-footer{
  margin-top:34px;
  padding:20px 2px 6px;
  border-top:1px solid #E2E7EF;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#667085;
  font-size:.78rem;
}

.footer-brand{
  font-weight:750;
  color:#344054;
  letter-spacing:-.015em;
}

.footer-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.footer-backup{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  padding:8px 11px;
  border-radius:11px;
  color:#667085;
  font-weight:650;
  transition:background .18s ease,color .18s ease;
}

.footer-backup:hover{
  background:#FFFFFF;
  color:#2D8CFF;
}

/* Progress bars: retain explicit app gradient. */
.progress{
  background:#E9EDF4 !important;
}

.progress > span{
  display:block !important;
  background:linear-gradient(90deg,#00C9A7 0%,#2D8CFF 58%,#6E5BFF 100%) !important;
}

/* Mobile */
@media(max-width:680px){
  .app-header{
    background:#F5F7FB !important;
    background-image:none !important;
  }

  .nav{
    background:#FFFFFF !important;
  }

  .app-footer{
    margin-top:26px;
    padding:18px 0 max(4px,env(safe-area-inset-bottom));
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .footer-backup{
    min-height:44px;
    padding-left:0;
  }
}


/* =========================================================
   Health OS v1.3.4 - header, quick stats and footer polish
   ========================================================= */

/* HEADER
   One opaque white card. No transparency, no ambient gradient bleeding. */
.app-header{
  background:#FFFFFF !important;
  background-image:none !important;
  border:1px solid #E6EAF2 !important;
  border-radius:20px !important;
  padding:14px 16px !important;
  margin:10px 0 14px !important;
  box-shadow:0 8px 28px rgba(14,21,38,.045) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  overflow:visible;
}

.app-header::before,
.app-header::after,
.brand::before,
.brand::after{
  content:none !important;
  display:none !important;
}

.brand,
.brand-copy,
.brand-title,
.brand-subtitle{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}

/* The icon is the only colorful visual on the left side. */
.brand-icon{
  background:transparent !important;
}

/* QUICK STATS: restore three separate rounded cards */
.insight-strip{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  margin:14px 0 18px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.insight{
  background:#FFFFFF !important;
  border:1px solid #E6EAF2 !important;
  border-radius:16px !important;
  padding:15px 17px !important;
  box-shadow:0 6px 22px rgba(14,21,38,.035) !important;
  min-width:0;
}

.insight + .insight{
  border-left:1px solid #E6EAF2 !important;
}

.insight small{
  color:#667085 !important;
  font-size:.72rem !important;
  line-height:1.3;
  min-height:auto !important;
}

.insight strong{
  color:#0E1526;
  font-size:1.18rem !important;
  margin-top:6px !important;
}

.insight .trend-up{color:#079F83 !important}
.insight .trend-down{color:#C2410C !important}
.insight .trend-flat{color:#667085 !important}

/* FOOTER */
.app-footer{
  margin-top:36px !important;
  padding:20px 22px !important;
  border:1px solid #E6EAF2 !important;
  border-radius:20px !important;
  background:#FFFFFF !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  box-shadow:0 8px 26px rgba(14,21,38,.035);
  color:#667085;
}

.footer-main{
  display:flex;
  align-items:center;
  gap:24px;
  min-width:0;
}

.footer-brand-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.footer-icon{
  width:38px;
  height:38px;
  border-radius:11px;
  display:block;
}

.footer-brand{
  font-size:1rem;
  font-weight:800;
  color:#0E1526;
  letter-spacing:-.025em;
  line-height:1;
}

.footer-tagline{
  margin-top:4px;
  font-size:.61rem;
  font-weight:650;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#98A2B3;
}

.footer-note{
  max-width:500px;
  font-size:.76rem;
  line-height:1.45;
  color:#667085;
}

.footer-actions{
  display:flex;
  align-items:center;
  flex:0 0 auto;
}

.footer-backup{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 13px !important;
  border:1px solid #E6EAF2;
  border-radius:12px;
  background:#F8FAFC;
  color:#475467 !important;
  font-size:.76rem;
  font-weight:700;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.footer-backup:hover{
  background:#FFFFFF;
  border-color:#C9D4E4;
  color:#2D8CFF !important;
  transform:translateY(-1px);
}

/* Mobile */
@media(max-width:680px){
  .app-header{
    margin:6px 0 10px !important;
    padding:9px 10px !important;
    border-radius:17px !important;
    background:#FFFFFF !important;
  }

  .nav{
    background:#FFFFFF !important;
  }

  .insight-strip{
    grid-template-columns:1fr !important;
    gap:8px !important;
    background:transparent !important;
  }

  .insight{
    padding:12px 14px !important;
    border-radius:14px !important;
  }

  .insight small{
    font-size:.66rem !important;
  }

  .insight strong{
    font-size:1rem !important;
  }

  .app-footer{
    margin-top:28px !important;
    padding:16px !important;
    border-radius:17px !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:14px !important;
  }

  .footer-main{
    align-items:flex-start;
    gap:12px;
    flex-direction:column;
  }

  .footer-note{
    max-width:none;
    font-size:.74rem;
  }

  .footer-actions{
    width:100%;
  }

  .footer-backup{
    width:100%;
    min-height:44px;
  }
}


/* =========================================================
   Health OS v1.4 - History UX
   ========================================================= */
.history-hero{
  margin:18px 0 14px;
  padding:22px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  background:#FFFFFF;
  border:1px solid #E6EAF2;
  border-radius:22px;
  box-shadow:0 8px 26px rgba(14,21,38,.035);
}
.history-hero-copy{min-width:0}
.history-hero h1{
  margin:5px 0 5px;
  font-size:clamp(1.65rem,4vw,2.4rem);
  letter-spacing:-.045em;
  line-height:1.08;
}
.history-hero p{margin:0;color:#667085;font-size:.84rem}

.history-date-controls{
  display:flex;
  align-items:flex-end;
  gap:8px;
  flex:0 0 auto;
}
.history-arrow,
.today-button{
  min-width:44px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border:1px solid #E6EAF2;
  border-radius:12px;
  background:#F8FAFC;
  color:#344054;
  font-size:.85rem;
  font-weight:700;
}
.history-arrow:hover,
.today-button:hover{background:#FFFFFF;border-color:#C9D4E4}
.history-arrow.disabled{opacity:.35;pointer-events:none}

.date-picker-wrap{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:#667085;
  font-size:.65rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.date-picker-wrap input{
  height:44px;
  border:1px solid #E6EAF2;
  border-radius:12px;
  padding:0 11px;
  background:#FFFFFF;
  color:#0E1526;
  font-weight:650;
  outline:none;
}
.date-picker-wrap input:focus{border-color:#8BB8FF;box-shadow:0 0 0 3px rgba(45,140,255,.10)}

.history-snapshot{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0 0 16px;
}
.snapshot-item{
  padding:14px 15px;
  border:1px solid #E6EAF2;
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 6px 20px rgba(14,21,38,.025);
}
.snapshot-item span{display:block;color:#667085;font-size:.68rem;font-weight:650}
.snapshot-item strong{display:block;margin-top:5px;color:#0E1526;font-size:1.05rem;letter-spacing:-.025em}

.history-toolbar{
  margin:18px 0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.history-filter-label strong{display:block;font-size:1.05rem}
.history-filter-label span{display:block;margin-top:2px;color:#667085;font-size:.73rem}
.history-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.history-filter{
  min-height:38px;
  border:1px solid #E6EAF2;
  border-radius:999px;
  padding:7px 11px;
  background:#FFFFFF;
  color:#667085;
  cursor:pointer;
  font-weight:650;
  font-size:.74rem;
}
.history-filter span{
  display:inline-flex;
  min-width:19px;
  height:19px;
  margin-left:5px;
  padding:0 5px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#F0F4FA;
  color:#667085;
  font-size:.62rem;
}
.history-filter:hover{border-color:#C9D4E4;color:#344054}
.history-filter.active{
  border-color:rgba(45,140,255,.22);
  background:linear-gradient(135deg,rgba(0,201,167,.08),rgba(45,140,255,.08),rgba(110,91,255,.07));
  color:#0E1526;
}
.history-filter.active span{background:#FFFFFF;color:#2D8CFF}

.history-timeline-section{margin-top:0!important}
.history-event[hidden]{display:none!important}
.history-filter-empty,
.history-empty{
  padding:34px 20px;
  border:1px dashed #CDD5DF;
  border-radius:18px;
  background:rgba(255,255,255,.6);
  color:#667085;
  text-align:center;
}
.history-empty-icon{font-size:1.8rem;color:#98A2B3;margin-bottom:8px}
.history-empty strong{display:block;color:#344054}
.history-empty p{margin:6px 0 0;font-size:.8rem}
.history-filter-empty{margin-top:10px;font-size:.82rem}

/* Give history cards a slightly stronger scan hierarchy */
.history-event .timeline-symbol{background:linear-gradient(135deg,rgba(0,201,167,.10),rgba(45,140,255,.11),rgba(110,91,255,.09))}
.history-event .timeline-title{font-size:.94rem}

@media(max-width:800px){
  .history-hero{align-items:flex-start;flex-direction:column}
  .history-date-controls{width:100%}
  .date-picker-wrap{flex:1}
  .date-picker-wrap input{width:100%}
  .history-snapshot{grid-template-columns:repeat(2,minmax(0,1fr))}
  .history-toolbar{align-items:flex-start;flex-direction:column;gap:10px}
}

@media(max-width:680px){
  .history-hero{
    margin:10px 0 10px;
    padding:16px;
    border-radius:18px;
  }
  .history-hero h1{font-size:1.48rem}
  .history-date-controls{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:end;
  }
  .today-button{
    grid-column:1 / -1;
    width:100%;
  }

  .history-snapshot{gap:8px;margin-bottom:12px}
  .snapshot-item{padding:11px 12px;border-radius:14px}
  .snapshot-item span{font-size:.62rem}
  .snapshot-item strong{font-size:.95rem}

  .history-toolbar{margin-top:15px}
  .history-filters{
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:2px 1px 6px;
    scrollbar-width:none;
  }
  .history-filters::-webkit-scrollbar{display:none}
  .history-filter{flex:0 0 auto;min-height:42px}

  .history-event{
    padding-top:14px!important;
  }
}

@media(max-width:360px){
  .history-snapshot{grid-template-columns:1fr 1fr}
  .snapshot-item strong{font-size:.88rem}
}

/* Health OS v1.4.1 - Weekly consistency chart */
.weekly-consistency-card{position:relative;overflow:visible}
.weekly-consistency-card h2{margin-bottom:4px}
.weekly-consistency-help{margin:0 0 18px;color:#667085;font-size:.76rem;line-height:1.45}
.week-chart{position:relative;padding-top:8px}
.week-reference{position:absolute;left:0;right:0;top:calc(8px + 20%);height:1px;border-top:1px dashed #C9D4E4;z-index:1;pointer-events:none}
.week-reference span{position:absolute;right:0;top:-17px;padding:1px 5px;border-radius:6px;background:#FFFFFF;color:#98A2B3;font-size:.62rem;font-weight:700}
.week-bars{position:relative;z-index:2;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:18px;align-items:end;min-height:190px}
.week-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.week-score{min-height:30px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;color:#0E1526;font-size:.74rem;font-weight:800;line-height:1.1}
.week-score small{display:block;margin-top:3px;color:#667085;font-size:.54rem;font-weight:650;white-space:nowrap}
.week-bar{position:relative;height:150px;width:54px;max-width:100%;background:#E9EDF4;border-radius:14px;overflow:hidden;display:flex;align-items:flex-end;box-shadow:inset 0 0 0 1px rgba(230,234,242,.65)}
.week-bar span{display:block;width:100%;min-height:0;border-radius:14px 14px 0 0;background:linear-gradient(180deg,#6E5BFF 0%,#2D8CFF 52%,#00C9A7 100%);transition:height .35s ease}
.week-label{min-height:31px;display:flex;flex-direction:column;align-items:center;color:#344054;font-size:.72rem;font-weight:750}
.week-label small{margin-top:2px;color:#2D8CFF;font-size:.54rem;font-weight:750}
.week-day.today .week-bar{outline:2px solid rgba(45,140,255,.30);outline-offset:3px}
.week-day.today .week-score{color:#2D8CFF}
@media(max-width:680px){
  .weekly-consistency-help{margin-bottom:14px;font-size:.72rem}
  .week-chart{overflow-x:auto;padding:8px 3px 7px;scrollbar-width:none}
  .week-chart::-webkit-scrollbar{display:none}
  .week-bars{grid-template-columns:repeat(7,56px);gap:10px;min-width:max-content;min-height:160px}
  .week-bar{width:44px;height:120px;border-radius:12px}
  .week-bar span{border-radius:12px 12px 0 0}
  .week-reference{top:calc(8px + 20%);min-width:452px}
  .week-score{font-size:.68rem}
  .week-label{font-size:.68rem}
}


/* =========================================================
   Health OS v1.5 - Day lifecycle
   ========================================================= */
.day-state-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:750;
}
.day-state-badge.in-progress{
  color:#3157C8;
  background:#EDF3FF;
  border:1px solid #D6E3FF;
}
.day-state-badge.closed{
  color:#087F6B;
  background:#ECF8F4;
  border:1px solid #D2EEE5;
}

/* Current day in weekly chart is informational, not a completed result. */
.week-day.in-progress .week-bar{
  background:
    repeating-linear-gradient(
      -45deg,
      #EEF2F7 0,
      #EEF2F7 6px,
      #F8FAFC 6px,
      #F8FAFC 12px
    );
  outline:2px solid rgba(45,140,255,.28);
  outline-offset:3px;
}
.week-day.in-progress .week-bar span{
  opacity:.72;
}
.week-day.in-progress .week-score{
  color:#2D8CFF;
}
.week-day.closed .week-score{
  color:#0E1526;
}

@media(max-width:680px){
  .day-state-badge{min-height:30px}
}


/* =========================================================
   Health OS v1.6 - Evolution 2.0 / North Star
   ========================================================= */
.evolution-hero{
  margin:18px 0 24px;
  padding:26px;
  border-radius:24px;
  background:#0E1526;
  color:#FFFFFF;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  box-shadow:0 18px 44px rgba(14,21,38,.13);
  overflow:hidden;
  position:relative;
}
.evolution-hero:after{
  content:"";
  position:absolute;
  width:380px;height:380px;
  right:-150px;top:-180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(22,199,232,.20),rgba(45,140,255,.10) 40%,transparent 70%);
}
.evolution-hero>div{position:relative;z-index:1}
.evolution-hero h1{margin:5px 0 6px;font-size:clamp(2rem,5vw,3rem);letter-spacing:-.05em}
.evolution-hero p{margin:0;color:#B8C0CF;font-size:.86rem}
.evolution-question{
  min-width:220px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:rgba(255,255,255,.06);
}
.evolution-question small{display:block;color:#98A2B3;font-size:.68rem}
.evolution-question strong{display:block;margin-top:5px;font-size:1.05rem}

.evolution-section{margin:28px 0}
.section-heading-row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:14px}
.section-heading-row h2{margin:4px 0 3px;font-size:1.25rem;letter-spacing:-.03em}
.section-heading-row p{margin:0;color:#667085;font-size:.78rem}

.north-star-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.north-star-card{
  background:#FFFFFF;
  border:1px solid #E6EAF2;
  border-radius:20px;
  padding:17px;
  box-shadow:0 7px 24px rgba(14,21,38,.035);
}
.north-star-card.forming{background:#FBFCFE}
.north-star-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.north-star-top>span:first-child{font-size:.76rem;font-weight:750;color:#344054}
.north-star-state{font-size:.57rem;font-weight:750;padding:4px 6px;border-radius:999px}
.north-star-state.ready{color:#087F6B;background:#ECF8F4}
.north-star-state.forming{color:#667085;background:#F0F2F5}
.north-star-score{margin-top:15px;font-size:2rem;font-weight:800;letter-spacing:-.05em;color:#0E1526}
.muted-score{color:#98A2B3}
.north-star-trend{min-height:34px;margin-top:5px;font-size:.68rem;line-height:1.35;color:#667085}
.north-star-trend.up{color:#087F6B}.north-star-trend.down{color:#B42318}.north-star-trend.flat{color:#667085}
.coverage-track{height:6px;margin-top:14px;background:#EDF0F5;border-radius:999px;overflow:hidden}
.coverage-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#00C9A7,#2D8CFF,#6E5BFF)}
.north-star-foot{display:flex;justify-content:space-between;gap:8px;margin-top:8px;color:#98A2B3;font-size:.59rem}

.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.result-card{
  background:#FFFFFF;border:1px solid #E6EAF2;border-radius:20px;padding:20px;
  box-shadow:0 7px 24px rgba(14,21,38,.035)
}
.result-card-top{display:flex;justify-content:space-between;gap:10px;color:#344054;font-size:.8rem;font-weight:750}
.result-card-top small{color:#98A2B3;font-size:.64rem;font-weight:650}
.result-value{display:block;margin-top:13px;font-size:2rem;letter-spacing:-.05em}
.result-comparisons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.result-comparisons div{padding:10px 11px;background:#F6F8FC;border-radius:12px}
.result-comparisons span{display:block;color:#667085;font-size:.62rem}
.result-comparisons strong{display:block;margin-top:3px;font-size:.84rem}
.result-note{margin:12px 0 0;color:#667085;font-size:.72rem;line-height:1.4}

.behavior-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.behavior-card{
  padding:17px;background:#FFFFFF;border:1px solid #E6EAF2;border-radius:18px;
  box-shadow:0 7px 24px rgba(14,21,38,.03)
}
.behavior-card>span{display:block;color:#667085;font-size:.7rem;font-weight:650}
.behavior-card>strong{display:block;margin-top:8px;font-size:1.35rem;letter-spacing:-.035em}
.behavior-card>small{display:block;margin-top:6px;font-size:.66rem;color:#667085}
.behavior-card>small.up{color:#087F6B}.behavior-card>small.down{color:#B42318}.behavior-card>small.flat{color:#667085}

.evolution-learning{
  padding:22px;
  border:1px solid #E6EAF2;
  border-radius:22px;
  background:#FFFFFF;
  box-shadow:0 8px 26px rgba(14,21,38,.035)
}
.evolution-insights{display:flex;flex-direction:column;gap:9px}
.evolution-insight{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:14px;
  padding:14px 15px;
  border-radius:15px;
  background:#F7F9FC;
  border:1px solid #EDF0F5;
}
.evolution-insight-type{font-size:.62rem;font-weight:800;letter-spacing:.08em;color:#667085;padding-top:2px}
.evolution-insight strong{font-size:.84rem;color:#0E1526}
.evolution-insight p{margin:4px 0 0;color:#526075;font-size:.78rem;line-height:1.5}
.evolution-insight.pattern{background:#F5F8FF;border-color:#E0E8FF}
.evolution-insight.pattern .evolution-insight-type{color:#3157C8}
.evolution-insight.recommendation{background:#FFF9ED;border-color:#F5E4B8}
.evolution-insight.recommendation .evolution-insight-type{color:#9A6700}
.evolution-insight.fact .evolution-insight-type{color:#087F6B}

@media(max-width:900px){
  .north-star-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .behavior-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .evolution-hero{padding:19px;border-radius:20px;align-items:flex-start;flex-direction:column;gap:14px}
  .evolution-question{min-width:0;width:100%}
  .section-heading-row{align-items:flex-start;flex-direction:column;gap:5px}
  .north-star-grid{grid-template-columns:1fr 1fr;gap:8px}
  .north-star-card{padding:14px;border-radius:16px}
  .north-star-top{align-items:flex-start;flex-direction:column}
  .north-star-score{font-size:1.6rem}
  .north-star-foot{flex-direction:column;gap:2px}
  .result-grid{grid-template-columns:1fr}
  .behavior-grid{grid-template-columns:1fr 1fr;gap:8px}
  .behavior-card{padding:14px}
  .evolution-learning{padding:16px;border-radius:18px}
  .evolution-insight{grid-template-columns:1fr;gap:5px;padding:12px}
}
@media(max-width:360px){
  .north-star-grid,.behavior-grid{grid-template-columns:1fr}
}


/* =========================================================
   Health OS v1.7 - P1.2 Trend & Pattern Engine
   ========================================================= */
.pattern-engine-section{
  margin:30px 0;
  padding:22px;
  border:1px solid #E6EAF2;
  border-radius:22px;
  background:#FFFFFF;
  box-shadow:0 8px 26px rgba(14,21,38,.035);
}
.pattern-data-badge{
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background:#F0F4FA;
  color:#526075;
  font-size:.68rem;
  font-weight:750;
}
.pattern-subsection+.pattern-subsection{margin-top:22px}
.pattern-subtitle{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.pattern-subtitle strong{font-size:.88rem;color:#0E1526}
.pattern-subtitle span{font-size:.68rem;color:#98A2B3;text-align:right}

.trend-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.trend-card{
  padding:15px;
  border-radius:16px;
  background:#F7F9FC;
  border:1px solid #EDF0F5;
}
.trend-card.up{background:#F1FAF7;border-color:#DCEFE9}
.trend-card.down{background:#FFF5F3;border-color:#F4D6D1}
.pattern-type{
  display:inline-block;
  color:#667085;
  font-size:.57rem;
  font-weight:800;
  letter-spacing:.09em;
}
.trend-card.up .pattern-type{color:#087F6B}
.trend-card.down .pattern-type{color:#B42318}
.trend-card>strong{
  display:block;
  margin-top:8px;
  font-size:.84rem;
}
.trend-card p{
  margin:5px 0 10px;
  color:#526075;
  font-size:.75rem;
  line-height:1.45;
}
.trend-card small{color:#98A2B3;font-size:.61rem}

.personal-patterns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.personal-pattern-card{
  padding:16px;
  border:1px solid #E6EAF2;
  border-radius:17px;
  background:#FBFCFE;
}
.personal-pattern-card.moderate{border-color:#D9E5FF;background:#F7F9FF}
.personal-pattern-card.stronger{border-color:#CFEBE3;background:#F3FBF8}
.personal-pattern-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.evidence-pill{
  padding:4px 7px;
  border-radius:999px;
  background:#EEF1F5;
  color:#667085;
  font-size:.56rem;
  font-weight:750;
  white-space:nowrap;
}
.evidence-pill.moderate{background:#EAF0FF;color:#3157C8}
.evidence-pill.stronger{background:#E8F7F2;color:#087F6B}
.personal-pattern-card>strong{
  display:block;
  margin-top:10px;
  color:#0E1526;
  font-size:.88rem;
}
.personal-pattern-card>p{
  margin:5px 0 12px;
  color:#475467;
  font-size:.77rem;
  line-height:1.5;
}
.pattern-evidence{
  padding-top:10px;
  border-top:1px solid #E9EDF4;
  display:flex;
  flex-direction:column;
  gap:4px;
  color:#98A2B3;
  font-size:.61rem;
  line-height:1.4;
}
.pattern-method-note{
  margin-top:14px;
  padding:11px 12px;
  border-radius:12px;
  background:#F6F8FC;
  color:#667085;
  font-size:.68rem;
  line-height:1.45;
}
.pattern-method-note strong{color:#344054}
.pattern-empty{
  padding:22px;
  border:1px dashed #CDD5DF;
  border-radius:16px;
  background:#FAFBFC;
  text-align:center;
}
.pattern-empty.compact{padding:17px}
.pattern-empty strong{color:#344054;font-size:.84rem}
.pattern-empty p{margin:5px 0 0;color:#667085;font-size:.74rem;line-height:1.45}

@media(max-width:900px){
  .trend-card-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .pattern-engine-section{padding:16px;border-radius:18px}
  .pattern-data-badge{align-self:flex-start}
  .pattern-subtitle{align-items:flex-start;flex-direction:column;gap:3px}
  .pattern-subtitle span{text-align:left}
  .personal-patterns{grid-template-columns:1fr}
  .personal-pattern-head{align-items:flex-start}
}


/* =========================================================
   Health OS v1.8 - P1.3 Current Objective & Priority
   ========================================================= */
.current-focus-card{
  margin:16px 0 20px;
  padding:20px;
  border:1px solid #DDE5F0;
  border-radius:22px;
  background:#FFFFFF;
  box-shadow:0 8px 28px rgba(14,21,38,.045);
}
.current-focus-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px
}
.focus-kicker{
  color:#667085;font-size:.64rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase
}
.current-focus-head h2{
  margin:5px 0 0;font-size:1.35rem;letter-spacing:-.035em;color:#0E1526
}
.focus-confidence{
  flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#ECF8F4;color:#087F6B;
  font-size:.61rem;font-weight:750
}
.focus-confidence.forming{background:#F0F2F5;color:#667085}
.focus-lead{
  margin:10px 0 16px;max-width:760px;color:#526075;font-size:.8rem;line-height:1.5
}
.focus-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px
}
.focus-item{
  padding:13px;border-radius:14px;background:#F6F8FC;border:1px solid #EDF0F5
}
.focus-item span{
  display:block;margin-bottom:5px;color:#98A2B3;font-size:.6rem;font-weight:700
}
.focus-item strong{
  display:block;color:#344054;font-size:.74rem;line-height:1.45;font-weight:650
}
.focus-item.focus-action{
  background:#F2F7FF;border-color:#DDE9FF
}
.focus-item.focus-action strong{color:#214EAF}
.focus-pattern{
  margin-top:10px;padding:10px 12px;border-radius:12px;background:#F7F9FF;color:#526075;
  font-size:.69rem;line-height:1.45
}
.focus-pattern span{
  display:block;margin-bottom:3px;color:#3157C8;font-size:.57rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase
}
.focus-objective{
  margin-top:12px;padding-top:12px;border-top:1px solid #EDF0F5;color:#667085;font-size:.68rem;line-height:1.45
}
.focus-objective span{
  margin-right:6px;color:#344054;font-weight:800
}

.evolution-focus{
  margin:20px 0 26px;padding:18px 20px;border-radius:19px;
  background:linear-gradient(135deg,#F5F8FF,#F4FBFA);border:1px solid #DDE7F3
}
.evolution-focus-label{
  color:#3157C8;font-size:.61rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase
}
.evolution-focus-main{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.7fr);gap:22px;align-items:center;margin-top:7px
}
.evolution-focus h2{margin:0 0 5px;font-size:1.15rem;letter-spacing:-.03em}
.evolution-focus p{margin:0;color:#526075;font-size:.76rem;line-height:1.45}
.evolution-focus-metric{
  padding-left:18px;border-left:1px solid #D8E1EC
}
.evolution-focus-metric span{display:block;color:#98A2B3;font-size:.59rem}
.evolution-focus-metric strong{display:block;margin-top:4px;color:#344054;font-size:.72rem;line-height:1.4}

@media(max-width:760px){
  .focus-grid{grid-template-columns:1fr}
  .current-focus-card{padding:16px;border-radius:18px}
  .current-focus-head{gap:10px}
  .current-focus-head h2{font-size:1.15rem}
  .focus-confidence{font-size:.56rem}
  .evolution-focus-main{grid-template-columns:1fr;gap:12px}
  .evolution-focus-metric{padding:11px 0 0;border-left:0;border-top:1px solid #D8E1EC}
}

/* Health OS v1.8.1 - Homepage visual hierarchy fix */
.today-hero{
  position:relative!important;overflow:hidden!important;margin:14px 0!important;padding:26px!important;
  border-radius:24px!important;background:#0E1526!important;color:#fff!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;gap:28px!important;align-items:center!important;
  box-shadow:0 18px 44px rgba(14,21,38,.10)!important
}
.today-hero::after{
  content:""!important;position:absolute!important;width:420px!important;height:420px!important;
  right:-170px!important;top:-190px!important;border-radius:50%!important;
  background:radial-gradient(circle,rgba(22,199,232,.24),rgba(45,140,255,.11) 38%,rgba(110,91,255,.05) 58%,transparent 72%)!important;
  pointer-events:none!important
}
.today-hero-main,.today-hero-score{position:relative!important;z-index:1!important}
.today-hero-main{min-width:0!important}
.today-hero-meta{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;margin-bottom:18px!important
}
.today-hero-kicker{
  margin:0!important;color:#98A2B3!important;font-size:.72rem!important;font-weight:700!important;
  letter-spacing:.13em!important;line-height:1!important;text-transform:uppercase!important
}
.today-hero .day-state-badge{margin:0!important}
.today-hero-copy h1{
  margin:0 0 10px!important;color:#fff!important;font-size:clamp(2rem,5vw,3.1rem)!important;
  line-height:1.02!important;letter-spacing:-.05em!important
}
.today-hero-copy p{
  margin:0!important;max-width:680px!important;color:#B8C0CF!important;font-size:.9rem!important;line-height:1.5!important
}
.today-hero-score{
  width:150px!important;padding:18px 16px!important;border-radius:20px!important;
  background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.09)!important;
  text-align:center!important;justify-self:end!important
}
.today-hero-score strong{
  display:block!important;color:#fff!important;font-size:2.6rem!important;line-height:.95!important;letter-spacing:-.05em!important
}
.today-hero-score span{
  display:block!important;margin-top:8px!important;color:#C2CAD8!important;font-size:.65rem!important;line-height:1.3!important
}

/* Focus card is secondary */
.current-focus-card{
  margin:0 0 18px!important;padding:17px 18px!important;border:1px solid #E1E7F0!important;
  border-radius:18px!important;background:rgba(255,255,255,.96)!important;
  box-shadow:0 7px 22px rgba(14,21,38,.035)!important
}
.current-focus-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}
.focus-kicker{font-size:.6rem!important}
.current-focus-head h2{margin:4px 0 0!important;font-size:1.12rem!important}
.focus-lead{margin:8px 0 12px!important;max-width:none!important;font-size:.75rem!important}
.focus-grid{display:grid!important;grid-template-columns:1fr 1.15fr 1fr!important;gap:8px!important}
.focus-item{padding:11px 12px!important;border-radius:12px!important}
.focus-item span{margin-bottom:4px!important;font-size:.56rem!important}
.focus-item strong{font-size:.69rem!important;line-height:1.4!important}
.focus-pattern{margin-top:8px!important;padding:9px 11px!important;font-size:.66rem!important}
.focus-objective{margin-top:9px!important;padding-top:9px!important;font-size:.64rem!important}

@media(max-width:680px){
  .today-hero{
    padding:16px!important;border-radius:20px!important;grid-template-columns:minmax(0,1fr) 82px!important;
    column-gap:12px!important;row-gap:14px!important;align-items:start!important
  }
  .today-hero-main{display:contents!important}
  .today-hero-meta{grid-column:1!important;grid-row:1!important;margin:0!important;gap:9px!important}
  .today-hero-score{
    grid-column:2!important;grid-row:1!important;width:82px!important;padding:10px 6px!important;
    border-radius:15px!important;align-self:start!important
  }
  .today-hero-score strong{font-size:1.7rem!important}
  .today-hero-score span{margin-top:5px!important;font-size:.48rem!important;line-height:1.2!important}
  .today-hero-copy{grid-column:1/-1!important;grid-row:2!important;min-width:0!important}
  .today-hero-copy h1{margin:0 0 8px!important;font-size:1.55rem!important;line-height:1.04!important}
  .today-hero-copy p{max-width:none!important;font-size:.78rem!important;line-height:1.45!important}
  .today-hero-kicker{font-size:.62rem!important}
  .today-hero .day-state-badge{min-height:27px!important;padding:4px 8px!important;font-size:.6rem!important;white-space:nowrap!important}
  .current-focus-card{padding:14px!important;border-radius:16px!important}
  .current-focus-head{align-items:flex-start!important}
  .current-focus-head h2{font-size:1rem!important}
  .focus-lead{font-size:.72rem!important}
  .focus-grid{grid-template-columns:1fr!important;gap:7px!important}
  .focus-item{padding:10px 11px!important}
}

/* =========================================================
   Health OS v2.0 - P2 Weekly Intelligence
   ========================================================= */
.weekly-close-hero{
  position:relative;overflow:hidden;margin:14px 0;padding:25px;border-radius:24px;
  background:#0E1526;color:#fff;display:grid;grid-template-columns:minmax(0,1fr) 150px;
  gap:24px;align-items:center
}
.weekly-close-hero:after{
  content:"";position:absolute;width:390px;height:390px;right:-150px;top:-190px;border-radius:50%;
  background:radial-gradient(circle,rgba(22,199,232,.23),rgba(45,140,255,.10) 42%,transparent 70%)
}
.weekly-close-hero>div{position:relative;z-index:1}
.weekly-close-kicker{color:#98A2B3;font-size:.65rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.weekly-closed-badge{display:inline-flex;margin:9px 0 14px;padding:5px 8px;border-radius:999px;background:#EEF4FF;color:#3157C8;font-size:.6rem;font-weight:800}
.weekly-close-hero h1{margin:0 0 7px;font-size:2.2rem;letter-spacing:-.045em;line-height:1.02}
.weekly-close-hero p{margin:0;color:#B8C0CF;font-size:.77rem}
.weekly-score-card{padding:17px 13px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.08);text-align:center}
.weekly-score-card strong{display:block;font-size:2rem;line-height:1}
.weekly-score-card span{display:block;margin-top:6px;color:#C2CAD8;font-size:.58rem;line-height:1.25}

.active-week-note{
  display:grid;grid-template-columns:1fr auto auto;gap:22px;align-items:center;margin:0 0 14px;padding:11px 14px;
  border:1px solid #E3E8F0;border-radius:14px;background:#F8FAFC;color:#526075
}
.active-week-note div{display:flex;gap:7px;align-items:baseline}
.active-week-note strong{color:#344054;font-size:.7rem}
.active-week-note span,.active-week-note p{margin:0;font-size:.62rem}
.active-week-note p{color:#98A2B3}

.weekly-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px}
.weekly-metrics article{padding:15px;border:1px solid #E4E9F1;border-radius:16px;background:#fff}
.weekly-metrics span{display:block;color:#667085;font-size:.62rem;font-weight:700}
.weekly-metrics strong{display:block;margin-top:6px;color:#0E1526;font-size:1.28rem;letter-spacing:-.03em}
.weekly-metrics small{display:block;margin-top:4px;color:#98A2B3;font-size:.58rem}

.weekly-story,.weekly-days-card{margin:0 0 20px;padding:20px;border:1px solid #E4E9F1;border-radius:20px;background:#fff}
.weekly-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}
.weekly-section-head h2{margin:3px 0 0;font-size:1.1rem;letter-spacing:-.025em}
.weekly-evidence-badge{padding:5px 8px;border-radius:999px;background:#F1F4F8;color:#667085;font-size:.57rem;font-weight:750}
.weekly-story-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.weekly-story-card{padding:15px;border-radius:15px;border:1px solid #E7EBF1;background:#F8FAFC}
.weekly-story-card.positive{background:#F3FBF8;border-color:#DDEFE9}
.weekly-story-card.attention{background:#FFF8F5;border-color:#F3E1D8}
.story-label{color:#667085;font-size:.55rem;font-weight:850;letter-spacing:.08em}
.weekly-story-card.positive .story-label{color:#087F6B}
.weekly-story-card.attention .story-label{color:#B54708}
.weekly-story-card h3,.weekly-pattern h3{margin:8px 0 5px;font-size:.85rem;color:#1D2939}
.weekly-story-card p,.weekly-pattern p{margin:0;color:#526075;font-size:.72rem;line-height:1.48}
.weekly-pattern{display:grid;grid-template-columns:.65fr 1.35fr;gap:18px;margin-top:10px;padding:14px;border-radius:15px;background:#F7F9FF;border:1px solid #E2E8FA}
.weekly-pattern small{grid-column:2;color:#98A2B3;font-size:.58rem}

.weekly-focus{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.7fr);gap:24px;align-items:center;
  margin:0 0 20px;padding:19px 20px;border-radius:20px;background:linear-gradient(135deg,#F2F7FF,#F2FBF8);border:1px solid #DCE7F2
}
.weekly-focus h2{margin:6px 0 5px;font-size:1.15rem;letter-spacing:-.03em}
.weekly-focus p{margin:0;color:#526075;font-size:.75rem;line-height:1.45}
.weekly-focus-success{padding-left:18px;border-left:1px solid #D5E0EB}
.weekly-focus-success span{display:block;color:#98A2B3;font-size:.58rem}
.weekly-focus-success strong{display:block;margin-top:5px;color:#344054;font-size:.7rem;line-height:1.4}

.p2-week-bars{position:relative;display:grid;grid-template-columns:repeat(7,1fr);gap:18px;padding:10px 12px 0}
.p2-week-day{text-align:center}
.p2-week-score{height:20px;font-size:.62rem;font-weight:800;color:#344054}
.p2-week-track{position:relative;width:38px;height:120px;margin:4px auto 7px;border-radius:12px;background:#EDF1F6;overflow:hidden}
.p2-week-track span{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#11C5B0,#536DFF);border-radius:12px}
.p2-week-track i{position:absolute;left:0;right:0;bottom:80%;border-top:1px dashed rgba(52,64,84,.35)}
.p2-week-label{font-size:.61rem;font-weight:750;color:#526075}
.weekly-method-note{margin:-6px 0 22px;padding:10px 12px;border-radius:12px;background:#F7F8FA;color:#667085;font-size:.63rem;line-height:1.45}
.weekly-method-note strong{color:#344054}

@media(max-width:760px){
  .weekly-close-hero{padding:16px;border-radius:20px;grid-template-columns:minmax(0,1fr) 82px;gap:12px}
  .weekly-close-hero h1{font-size:1.5rem}
  .weekly-score-card{padding:11px 6px;border-radius:14px}
  .weekly-score-card strong{font-size:1.45rem}
  .weekly-score-card span{font-size:.47rem}
  .active-week-note{grid-template-columns:1fr auto;gap:5px 12px}
  .active-week-note p{grid-column:1/-1}
  .active-week-note div{display:block}
  .active-week-note span{display:block;margin-top:2px}
  .weekly-metrics{grid-template-columns:1fr 1fr}
  .weekly-story,.weekly-days-card{padding:15px;border-radius:17px}
  .weekly-story-grid{grid-template-columns:1fr}
  .weekly-pattern{grid-template-columns:1fr;gap:6px}
  .weekly-pattern small{grid-column:1}
  .weekly-focus{grid-template-columns:1fr;gap:12px;padding:16px}
  .weekly-focus-success{padding:11px 0 0;border-left:0;border-top:1px solid #D5E0EB}
  .p2-week-bars{gap:7px;padding-left:0;padding-right:0}
  .p2-week-track{width:24px;height:92px;border-radius:9px}
  .p2-week-score{font-size:.53rem}
  .p2-week-label{font-size:.54rem}
}

/* Health OS v2.1 P2.1 */
.current-focus-compact{margin:0 0 16px;padding:15px 17px;border:1px solid #E1E7F0;border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(14,21,38,.035)}.focus-compact-main{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:11px;align-items:center}.focus-compact-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#E8FBF9,#EEF3FF);color:#3157C8;font-weight:900}.focus-compact-kicker{color:#667085;font-size:.56rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.focus-compact-copy h2{margin:3px 0;color:#0E1526;font-size:1rem}.focus-compact-copy p{margin:0;color:#526075;font-size:.7rem;line-height:1.4}.focus-compact-confidence{padding:5px 8px;border-radius:999px;background:#ECF8F4;color:#087F6B;font-size:.55rem;font-weight:750;white-space:nowrap}.focus-compact-confidence.forming{background:#F0F2F5;color:#667085}.focus-details{margin:11px 0 0 45px;border-top:1px solid #EDF0F5;padding-top:8px}.focus-details summary{width:max-content;cursor:pointer;list-style:none;color:#3157C8;font-size:.62rem;font-weight:800}.focus-details summary::-webkit-details-marker{display:none}.focus-details summary::after{content:" ↓"}.focus-details[open] summary::after{content:" ↑"}.focus-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.focus-details-grid>div{padding:10px 11px;border-radius:11px;background:#F7F9FC}.focus-details-grid span,.focus-details-pattern span{display:block;margin-bottom:4px;color:#98A2B3;font-size:.54rem;font-weight:750}.focus-details-grid strong{display:block;color:#344054;font-size:.66rem;line-height:1.42}.focus-details-pattern{margin-top:8px;padding:9px 11px;border-radius:11px;background:#F7F9FF;color:#526075;font-size:.64rem;line-height:1.42}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin-top:0!important}.today-hero{margin-bottom:12px!important}@media(max-width:680px){.current-focus-compact{padding:13px 14px;border-radius:16px}.focus-compact-main{grid-template-columns:30px minmax(0,1fr);gap:9px}.focus-compact-icon{width:30px;height:30px}.focus-compact-confidence{grid-column:2;justify-self:start}.focus-details{margin-left:39px}.focus-details-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}}


/* =========================================================
   Health OS v2.2 - P2.2 Today Decision Layer
   ========================================================= */

.today-focus-card{
  margin:0 0 14px;
  padding:15px 17px;
  border:1px solid #E1E7F0;
  border-radius:17px;
  background:#fff;
  box-shadow:0 6px 20px rgba(14,21,38,.03);
}
.today-focus-kicker{
  color:#667085;font-size:.56rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase;
}
.today-focus-row{
  margin-top:5px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.today-focus-row h2{
  margin:0 0 4px;
  font-size:1rem;
  color:#0E1526;
  letter-spacing:-.025em;
}
.today-focus-row p{
  margin:0;
  max-width:720px;
  color:#526075;
  font-size:.72rem;
  line-height:1.45;
}
.today-focus-details{
  flex:0 0 auto;
}
.today-focus-details summary{
  cursor:pointer;
  list-style:none;
  color:#3157C8;
  font-size:.62rem;
  font-weight:800;
  white-space:nowrap;
}
.today-focus-details summary::-webkit-details-marker{display:none}
.today-focus-details-body{
  position:absolute;
  z-index:20;
  right:38px;
  margin-top:8px;
  width:min(420px,calc(100vw - 48px));
  padding:12px;
  border:1px solid #E0E6EF;
  border-radius:14px;
  background:#fff;
  box-shadow:0 16px 40px rgba(14,21,38,.12);
}
.today-focus-details-body>div+div{margin-top:10px;padding-top:10px;border-top:1px solid #EDF0F5}
.today-focus-details-body span{
  display:block;margin-bottom:4px;color:#98A2B3;font-size:.54rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
}
.today-focus-details-body strong{
  display:block;color:#344054;font-size:.68rem;line-height:1.45;
}

.today-operational{
  margin:0 0 14px;
}
.today-section-head{
  margin-bottom:8px;
}
.today-section-head h2{
  margin:3px 0 0;
  font-size:1rem;
  letter-spacing:-.025em;
}
.today-operational-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.today-operational-card{
  padding:14px 15px;
  border:1px solid #E4E9F1;
  border-radius:15px;
  background:#fff;
}
.today-operational-card>span{
  display:block;
  color:#667085;
  font-size:.62rem;
  font-weight:700;
}
.today-operational-card>strong{
  display:block;
  margin-top:6px;
  color:#0E1526;
  font-size:1.35rem;
  line-height:1;
  letter-spacing:-.035em;
}
.today-operational-card>small{
  display:block;
  margin-top:7px;
  font-size:.6rem;
  font-weight:750;
}
.today-operational-card.done>small{color:#087F6B}
.today-operational-card.progress>small{color:#3157C8}
.today-operational-card.attention>small{color:#B54708}
.today-operational-card.neutral>small{color:#98A2B3}

.today-attention{
  margin:0 0 14px;
  padding:13px 15px;
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:10px;
  align-items:start;
  border:1px solid #F1E0C9;
  border-radius:15px;
  background:#FFF9F0;
}
.today-attention-icon{
  width:28px;height:28px;border-radius:9px;display:grid;place-items:center;
  background:#FFF0D8;color:#B54708;font-weight:900;
}
.today-attention-kicker{
  color:#B54708;font-size:.54rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;
}
.today-attention h2{
  margin:3px 0 3px;
  font-size:.86rem;
  color:#7A2E0E;
}
.today-attention p{
  margin:0;
  color:#805338;
  font-size:.68rem;
  line-height:1.45;
}

/* Timeline becomes the principal body of Today */
.timeline-section{
  margin-top:18px !important;
}
.timeline-section h2{
  font-size:1.05rem;
}

/* Event microcopy is feedback, not longitudinal insight */
.timeline-insight summary .insight-label{
  letter-spacing:0;
}

/* Closing section should not compete with the live-day view */
.today-close-section{
  margin-top:20px;
  padding-top:2px;
}

/* Remove decorative progress semantics that duplicate explicit text */
.metric .progress,
.kpi-card .progress,
.today-operational-card .progress{
  display:none !important;
}

/* Hide any stray historical analytics accidentally left on Today */
.insight-strip,
.month-calendar,
.calendar-card.month-calendar{
  display:none !important;
}

@media(max-width:680px){
  .today-focus-card{padding:13px 14px;border-radius:15px}
  .today-focus-row{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .today-focus-details{width:100%}
  .today-focus-details-body{
    position:static;
    width:100%;
    margin-top:8px;
    box-shadow:none;
    background:#F8FAFC;
  }
  .today-operational-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .today-operational-card{
    padding:11px 10px;
    border-radius:13px;
  }
  .today-operational-card>strong{
    font-size:1.05rem;
  }
  .today-operational-card>span,
  .today-operational-card>small{
    font-size:.55rem;
  }
  .today-attention{
    padding:12px;
  }
}

@media(max-width:360px){
  .today-operational-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   HEALTH OS DESIGN SYSTEM v1 · P2.3
   Principles: hierarchy, restraint, progressive disclosure.
   ========================================================= */
:root{
  --hos-bg:#F5F7FA;
  --hos-surface:#FFFFFF;
  --hos-surface-subtle:#F8FAFC;
  --hos-text:#101828;
  --hos-text-2:#475467;
  --hos-muted:#98A2B3;
  --hos-line:#EAECF0;
  --hos-info:#3157C8;
  --hos-success:#087F6B;
  --hos-attention:#B54708;
  --hos-hero:#0E1526;
  --hos-radius-sm:10px;
  --hos-radius-md:14px;
  --hos-radius-lg:20px;
  --hos-space-1:4px;
  --hos-space-2:8px;
  --hos-space-3:12px;
  --hos-space-4:16px;
  --hos-space-5:24px;
  --hos-space-6:32px;
  --hos-xs:11px;
  --hos-sm:13px;
  --hos-base:15px;
  --hos-lg:18px;
  --hos-xl:26px;
  --hos-hero-size:42px;
}

/* Page rhythm */
body{background:var(--hos-bg)}
.shell{max-width:1120px}
.today-date-context{
  margin:18px 2px 7px;
  color:var(--hos-muted);
  font-size:var(--hos-xs);
  font-weight:700;
  letter-spacing:.02em;
}

/* Hero becomes the single decision surface above the fold */
.today-hero{
  margin:0 0 var(--hos-space-5)!important;
  padding:26px 28px 0!important;
  border-radius:24px!important;
  grid-template-columns:minmax(0,1fr) 132px!important;
  gap:20px 28px!important;
}
.today-hero-copy h1{
  font-size:var(--hos-hero-size)!important;
  letter-spacing:-.045em!important;
}
.today-hero-copy p{
  font-size:var(--hos-sm)!important;
  max-width:620px!important;
}
.today-hero-score{
  width:132px!important;
  padding:15px 12px!important;
  border-radius:18px!important;
}
.today-hero-score strong{font-size:36px!important}
.today-hero-score span{font-size:var(--hos-xs)!important}

/* Focus is part of the hero, not another card */
.hero-focus-strip{
  position:relative;
  z-index:2;
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:4px -28px 0;
  padding:14px 28px;
  border-top:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.035);
}
.hero-focus-copy{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:baseline;
  gap:8px 12px;
  min-width:0;
}
.hero-focus-copy>span{
  color:#98A2B3;
  font-size:var(--hos-xs);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.hero-focus-copy>strong{
  color:#fff;
  font-size:var(--hos-base);
}
.hero-focus-copy>small{
  color:#B8C0CF;
  font-size:var(--hos-sm);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hero-focus-details{position:relative;flex:0 0 auto}
.hero-focus-details summary{
  cursor:pointer;list-style:none;color:#9DC6FF;font-size:var(--hos-xs);font-weight:800;
}
.hero-focus-details summary::-webkit-details-marker{display:none}
.hero-focus-popover{
  position:absolute;right:0;top:26px;z-index:30;
  width:min(430px,calc(100vw - 44px));
  padding:14px;
  border:1px solid var(--hos-line);
  border-radius:var(--hos-radius-md);
  background:#fff;
  box-shadow:0 18px 48px rgba(14,21,38,.18);
}
.hero-focus-popover>div+div{margin-top:10px;padding-top:10px;border-top:1px solid var(--hos-line)}
.hero-focus-popover span{display:block;margin-bottom:4px;color:var(--hos-muted);font-size:var(--hos-xs);font-weight:800;text-transform:uppercase}
.hero-focus-popover strong{display:block;color:var(--hos-text-2);font-size:var(--hos-sm);line-height:1.45}

/* Operational metrics: one surface, not three cards */
.today-operational{margin:0 0 var(--hos-space-5)}
.today-section-head{margin:0 0 10px}
.today-section-head h2{
  margin:0;
  color:var(--hos-text);
  font-size:var(--hos-lg);
  letter-spacing:-.025em;
}
.today-operational-grid{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:0!important;
  padding:0;
  border:0!important;
  border-radius:var(--hos-radius-lg);
  background:var(--hos-surface);
  box-shadow:0 1px 2px rgba(16,24,40,.03);
  overflow:hidden;
}
.today-operational-card{
  position:relative;
  min-height:104px;
  padding:18px 20px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-operational-card+ .today-operational-card:before{
  content:"";
  position:absolute;
  left:0;top:18px;bottom:18px;
  width:1px;background:var(--hos-line);
}
.today-operational-card>span{font-size:var(--hos-xs)!important;color:var(--hos-text-2)!important}
.today-operational-card>strong{margin-top:8px!important;font-size:var(--hos-xl)!important}
.today-operational-card>small{margin-top:8px!important;font-size:var(--hos-xs)!important}

/* Attention is a lightweight contextual callout */
.today-attention{
  margin:-8px 0 var(--hos-space-5);
  padding:11px 14px;
  border:0;
  border-left:3px solid #F2B66D;
  border-radius:0 var(--hos-radius-sm) var(--hos-radius-sm) 0;
  background:#FFF9F2;
  grid-template-columns:22px minmax(0,1fr);
}
.today-attention.focus-related{
  border-left-color:#86A8F7;
  background:#F5F8FF;
}
.today-attention-icon{
  width:22px;height:22px;border-radius:50%;
  background:transparent;
  color:var(--hos-attention);
  font-size:var(--hos-sm);
}
.today-attention.focus-related .today-attention-icon{color:var(--hos-info)}
.today-attention-kicker{font-size:var(--hos-xs)}
.today-attention h2{font-size:var(--hos-sm);margin:2px 0}
.today-attention p{font-size:var(--hos-sm);line-height:1.4}

/* Timeline: flatter health-log aesthetic */
.timeline-section{
  margin-top:0!important;
  padding-top:0!important;
}
.timeline-section .section-head,
.timeline-section .today-section-head{
  margin-bottom:12px;
}
.timeline-card,
.timeline-item,
.timeline-entry{
  box-shadow:none!important;
}
.timeline-item,
.timeline-entry{
  border:0!important;
  border-bottom:1px solid var(--hos-line)!important;
  border-radius:0!important;
  background:transparent!important;
}
.timeline-item:last-child,
.timeline-entry:last-child{border-bottom:0!important}

/* Reduce excessive visual chrome across Today */
.today-close-section{
  margin-top:var(--hos-space-6);
  padding-top:var(--hos-space-5);
  border-top:1px solid var(--hos-line);
}
.today-close-section .daily-report-card{
  box-shadow:none!important;
}

/* Typography normalization for Today */
.today-hero-kicker,.eyebrow,.today-attention-kicker,.story-label{
  font-size:var(--hos-xs)!important;
}
.timeline-section p,.timeline-section small{
  line-height:1.45;
}

/* Legacy P2.1/P2.2 focus surfaces are intentionally retired */
.current-focus-compact,.today-focus-card{display:none!important}

@media(max-width:680px){
  .shell{padding-left:14px!important;padding-right:14px!important}
  .today-date-context{margin-top:12px}
  .today-hero{
    padding:16px 16px 0!important;
    grid-template-columns:minmax(0,1fr) 78px!important;
    gap:12px!important;
    margin-bottom:20px!important;
  }
  .today-hero-copy h1{font-size:26px!important}
  .today-hero-copy p{font-size:12px!important}
  .today-hero-score{width:78px!important;padding:10px 5px!important}
  .today-hero-score strong{font-size:25px!important}
  .today-hero-score span{font-size:9px!important}
  .hero-focus-strip{
    margin:2px -16px 0;
    padding:12px 16px;
    align-items:flex-start;
  }
  .hero-focus-copy{
    grid-template-columns:1fr;
    gap:2px;
  }
  .hero-focus-copy>span{font-size:9px}
  .hero-focus-copy>strong{font-size:13px}
  .hero-focus-copy>small{
    font-size:11px;
    white-space:normal;
    overflow:visible;
  }
  .hero-focus-details summary{font-size:10px}
  .hero-focus-popover{
    position:fixed;
    left:14px;right:14px;top:auto;
    width:auto;
  }

  .today-operational{margin-bottom:20px}
  .today-operational-grid{
    grid-template-columns:1fr!important;
    border-radius:16px;
  }
  .today-operational-card{
    min-height:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"label value" "state value";
    align-items:center;
    gap:3px 14px;
    padding:13px 15px!important;
  }
  .today-operational-card+ .today-operational-card:before{
    left:15px;right:15px;top:0;bottom:auto;width:auto;height:1px;
  }
  .today-operational-card>span{grid-area:label}
  .today-operational-card>strong{grid-area:value;margin:0!important;font-size:20px!important}
  .today-operational-card>small{grid-area:state;margin:0!important}
  .today-attention{margin-top:-7px;margin-bottom:20px}
  .today-close-section{margin-top:24px;padding-top:20px}
}

@media(max-width:680px){
  .today-operational{margin:0 0 20px!important;overflow:visible!important}
  .today-operational .today-section-head{margin-bottom:10px!important}
  .today-operational .today-section-head h2{margin:0!important;font-size:18px!important;line-height:1.2!important}
  .today-operational-grid{
    display:block!important;width:100%!important;padding:0!important;margin:0!important;overflow:hidden!important;
    border-radius:16px!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important
  }
  .today-operational-card{
    position:relative!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"label value" "state value"!important;
    gap:3px 16px!important;align-items:center!important;
    width:100%!important;min-height:72px!important;height:auto!important;
    padding:14px 14px!important;margin:0!important;
    border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important
  }
  .today-operational-card + .today-operational-card{border-top:1px solid #EAECF0!important}
  .today-operational-card + .today-operational-card::before{display:none!important;content:none!important}
  .today-operational-card > span{
    grid-area:label!important;display:block!important;margin:0!important;color:#667085!important;
    font-size:11px!important;font-weight:700!important;line-height:1.2!important
  }
  .today-operational-card > strong{
    grid-area:value!important;justify-self:end!important;align-self:center!important;display:block!important;
    margin:0!important;padding:0!important;color:#101828!important;font-size:20px!important;font-weight:800!important;
    line-height:1!important;letter-spacing:-.03em!important;white-space:nowrap!important
  }
  .today-operational-card > small{
    grid-area:state!important;display:block!important;margin:0!important;padding:0!important;
    font-size:10px!important;font-weight:750!important;line-height:1.25!important
  }
  .today-operational-card .progress,
  .today-operational-card .progress-bar,
  .today-operational-card .bar,
  .today-operational-card [class*="progress"],
  .today-operational-card [class*="bar"]{
    display:none!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important
  }
  .today-operational-card.done > small{color:#087F6B!important}
  .today-operational-card.progress > small{color:#3157C8!important}
  .today-operational-card.attention > small{color:#B54708!important}
  .today-operational-card.neutral > small{color:#98A2B3!important}
}
@media(max-width:360px){
  .today-operational-card{min-height:68px!important;padding:13px 12px!important;gap:3px 12px!important}
  .today-operational-card > strong{font-size:18px!important}
}


/* =========================================================
   Health OS v2.3.2 — definitive Today layout fix
   Fixes legacy .progress class collision.
   ========================================================= */

.today-operational{
  margin:0 0 24px !important;
}
.today-operational-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  width:100% !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid #EAECF0 !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 1px 3px rgba(16,24,40,.04) !important;
}
.today-operational-card{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  min-width:0 !important;
  min-height:118px !important;
  padding:20px 22px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
}
.today-operational-card + .today-operational-card{
  border-left:1px solid #EAECF0 !important;
}
.today-operational-card + .today-operational-card::before,
.today-operational-card::after{
  content:none !important;
  display:none !important;
}
.today-operational-card > span{
  display:block !important;
  margin:0 0 8px !important;
  color:#667085 !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
}
.today-operational-card > strong{
  display:block !important;
  margin:0 0 8px !important;
  padding:0 !important;
  color:#101828 !important;
  font-size:27px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:-.035em !important;
  white-space:nowrap !important;
}
.today-operational-card > small{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:11px !important;
  font-weight:750 !important;
  line-height:1.25 !important;
}
.today-operational-card.done > small{color:#087F6B !important}
.today-operational-card.state-progress > small{color:#3157C8 !important}
.today-operational-card.attention > small{color:#B54708 !important}
.today-operational-card.neutral > small{color:#98A2B3 !important}

/* Only hide actual child progress elements, never the operational card itself. */
.today-operational-card > .progress,
.today-operational-card > .progress-bar,
.today-operational-card > .bar,
.today-operational-card .metric-progress,
.today-operational-card .kpi-progress{
  display:none !important;
}

/* Neutralize legacy global progress decoration if injected via pseudo-elements. */
.today-operational-card.state-progress{
  background:#fff !important;
  height:auto !important;
  overflow:visible !important;
}

@media(max-width:680px){
  .today-operational{
    margin-bottom:20px !important;
  }
  .today-operational .today-section-head{
    margin:0 0 10px !important;
  }
  .today-operational-grid{
    display:block !important;
    border-radius:16px !important;
  }
  .today-operational-card{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "label value"
      "state value" !important;
    align-items:center !important;
    column-gap:16px !important;
    row-gap:4px !important;
    min-height:74px !important;
    padding:14px 16px !important;
  }
  .today-operational-card + .today-operational-card{
    border-left:0 !important;
    border-top:1px solid #EAECF0 !important;
  }
  .today-operational-card > span{
    grid-area:label !important;
    margin:0 !important;
    font-size:11px !important;
  }
  .today-operational-card > strong{
    grid-area:value !important;
    justify-self:end !important;
    align-self:center !important;
    margin:0 !important;
    font-size:20px !important;
  }
  .today-operational-card > small{
    grid-area:state !important;
    margin:0 !important;
    font-size:10px !important;
  }
}

@media(max-width:360px){
  .today-operational-card{
    min-height:70px !important;
    padding:13px 14px !important;
    column-gap:12px !important;
  }
  .today-operational-card > strong{
    font-size:18px !important;
  }
}


/* =========================================================
   Health OS v2.3.3 - Desktop focus popover fix
   ========================================================= */

/* Allow the desktop popover to escape the hero bounds. */
@media(min-width:681px){
  .today-hero{
    overflow:visible !important;
  }

  .today-hero::after{
    border-radius:24px !important;
    overflow:hidden !important;
    pointer-events:none !important;
  }

  .hero-focus-strip{
    position:relative !important;
    z-index:40 !important;
  }

  .hero-focus-details{
    position:relative !important;
    z-index:50 !important;
  }

  .hero-focus-popover{
    position:absolute !important;
    z-index:999 !important;
    top:calc(100% + 10px) !important;
    right:0 !important;
    left:auto !important;

    width:420px !important;
    max-width:calc(100vw - 80px) !important;

    padding:14px !important;
    border:1px solid #E0E6EF !important;
    border-radius:14px !important;
    background:#FFFFFF !important;
    box-shadow:0 18px 48px rgba(14,21,38,.20) !important;
  }

  .hero-focus-popover::before{
    content:"" !important;
    position:absolute !important;
    top:-6px !important;
    right:18px !important;
    width:12px !important;
    height:12px !important;
    background:#FFFFFF !important;
    border-left:1px solid #E0E6EF !important;
    border-top:1px solid #E0E6EF !important;
    transform:rotate(45deg) !important;
  }
}

/* Keep mobile behavior contained and predictable. */
@media(max-width:680px){
  .today-hero{
    overflow:hidden !important;
  }

  .hero-focus-popover{
    position:static !important;
    width:100% !important;
    max-width:none !important;
    margin-top:8px !important;
    box-shadow:none !important;
    background:#F8FAFC !important;
  }

  .hero-focus-popover::before{
    display:none !important;
  }
}


/* =========================================================
   Health OS v2.3.4 - Mobile focus details as inline accordion
   ========================================================= */

@media(max-width:680px){

  .hero-focus-strip{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    align-items:start !important;
    padding:12px 16px 14px !important;
    overflow:visible !important;
  }

  .hero-focus-copy{
    display:block !important;
    min-width:0 !important;
  }

  .hero-focus-copy > span{
    display:block !important;
    margin-bottom:3px !important;
  }

  .hero-focus-copy > strong{
    display:block !important;
    margin-bottom:4px !important;
    line-height:1.25 !important;
  }

  .hero-focus-copy > small{
    display:block !important;
    margin:0 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    line-height:1.4 !important;
  }

  .hero-focus-details{
    position:static !important;
    z-index:auto !important;
    width:100% !important;
    margin:0 !important;
  }

  .hero-focus-details summary{
    display:inline-flex !important;
    align-items:center !important;
    gap:5px !important;
    width:auto !important;
    margin:0 !important;
    padding:0 !important;
    color:#9DC6FF !important;
    font-size:10px !important;
    font-weight:800 !important;
    line-height:1.3 !important;
  }

  .hero-focus-details summary::after{
    content:" ↓" !important;
  }

  .hero-focus-details[open] summary::after{
    content:" ↑" !important;
  }

  .hero-focus-popover{
    position:static !important;
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:10px 0 0 !important;
    padding:12px !important;

    border:1px solid rgba(255,255,255,.08) !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.06) !important;
    box-shadow:none !important;
  }

  .hero-focus-popover::before{
    display:none !important;
    content:none !important;
  }

  .hero-focus-popover > div{
    padding:0 !important;
    margin:0 !important;
  }

  .hero-focus-popover > div + div{
    margin-top:10px !important;
    padding-top:10px !important;
    border-top:1px solid rgba(255,255,255,.08) !important;
  }

  .hero-focus-popover span{
    display:block !important;
    margin:0 0 4px !important;
    color:#8FA1BA !important;
    font-size:9px !important;
    font-weight:800 !important;
    letter-spacing:.06em !important;
    text-transform:uppercase !important;
  }

  .hero-focus-popover strong{
    display:block !important;
    margin:0 !important;
    color:#E9EEF6 !important;
    font-size:11px !important;
    font-weight:650 !important;
    line-height:1.45 !important;
  }

  /* Hero must grow naturally when accordion opens */
  .today-hero{
    overflow:hidden !important;
    height:auto !important;
    min-height:0 !important;
  }
}


/* =========================================================
   Health OS v2.3.6 - Conditional Activity Display
   ========================================================= */

.activity-card-conditional{
  margin:0 0 24px !important;
  padding:20px !important;
  border:0 !important;
  border-radius:20px !important;
  background:#FFFFFF !important;
  box-shadow:0 1px 3px rgba(16,24,40,.04) !important;
}

.activity-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}

.activity-section-head h2{
  margin:0 !important;
  color:#101828 !important;
  font-size:18px !important;
  line-height:1.2 !important;
  letter-spacing:-.02em !important;
}

.activity-section-head > span{
  color:#98A2B3;
  font-size:11px;
  font-weight:700;
}

.activity-grid-dynamic{
  display:grid !important;
  gap:10px !important;
}

.activity-grid-dynamic.count-1{
  grid-template-columns:minmax(0,1fr) !important;
}

.activity-grid-dynamic.count-2{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

.activity-grid-dynamic.count-3{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}

.activity-grid-dynamic.count-4{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

.activity-item-dynamic{
  display:flex !important;
  align-items:flex-start !important;
  gap:12px !important;
  min-width:0 !important;
  min-height:92px !important;
  padding:15px 16px !important;
  border:0 !important;
  border-radius:15px !important;
  background:#F4F7FB !important;
  box-shadow:none !important;
}

.activity-grid-dynamic.count-1 .activity-item-dynamic{
  max-width:none !important;
}

.activity-item-dynamic .activity-icon{
  flex:0 0 auto;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  margin:0 !important;
  font-size:18px !important;
}

.activity-copy{
  min-width:0;
}

.activity-label{
  display:block;
  margin:0 0 5px;
  color:#667085;
  font-size:11px;
  font-weight:700;
}

.activity-item-dynamic strong{
  display:block !important;
  margin:0 !important;
  color:#101828 !important;
  font-size:19px !important;
  line-height:1.1 !important;
  letter-spacing:-.025em !important;
}

.activity-item-dynamic small{
  display:block;
  margin-top:5px;
  color:#667085;
  font-size:11px;
  line-height:1.35;
}

.activity-empty{
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 16px;
  border-radius:14px;
  background:#F8FAFC;
}

.activity-empty-icon{
  flex:0 0 auto;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#EEF2F6;
  color:#98A2B3;
  font-size:16px;
}

.activity-empty strong{
  display:block;
  color:#344054;
  font-size:13px;
}

.activity-empty p{
  margin:3px 0 0;
  color:#98A2B3;
  font-size:11px;
  line-height:1.4;
}

@media(max-width:680px){
  .activity-card-conditional{
    padding:15px !important;
    border-radius:17px !important;
    margin-bottom:20px !important;
  }

  .activity-section-head{
    margin-bottom:10px;
  }

  .activity-grid-dynamic,
  .activity-grid-dynamic.count-1,
  .activity-grid-dynamic.count-2,
  .activity-grid-dynamic.count-3,
  .activity-grid-dynamic.count-4{
    grid-template-columns:1fr !important;
    gap:0 !important;
    border-radius:14px;
    overflow:hidden;
    background:#F7F9FC;
  }

  .activity-item-dynamic{
    min-height:68px !important;
    padding:12px 13px !important;
    border-radius:0 !important;
    background:transparent !important;
    align-items:center !important;
  }

  .activity-item-dynamic + .activity-item-dynamic{
    border-top:1px solid #E7EBF1 !important;
  }

  .activity-item-dynamic .activity-icon{
    width:26px;
    height:26px;
    font-size:16px !important;
  }

  .activity-copy{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "label value"
      "meta value";
    width:100%;
    column-gap:12px;
    align-items:center;
  }

  .activity-label{
    grid-area:label;
    margin:0;
    font-size:10px;
  }

  .activity-item-dynamic strong{
    grid-area:value;
    justify-self:end;
    font-size:17px !important;
    white-space:nowrap;
  }

  .activity-item-dynamic small{
    grid-area:meta;
    margin-top:3px;
    font-size:10px;
  }
}

/* Health OS v2.3.7 · Simplified Timeline */
.timeline-section-v237{margin:26px 0 0!important;padding:20px 22px 8px!important;border-radius:20px!important;background:#fff!important;box-shadow:0 1px 3px rgba(16,24,40,.04)!important}
.timeline-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 12px}
.timeline-section-head h2{margin:0!important;color:#101828;font-size:18px!important;line-height:1.2;letter-spacing:-.025em}
.timeline-section-head p{margin:4px 0 0;color:#98A2B3;font-size:11px;line-height:1.4}
.timeline-section-head>span{flex:0 0 auto;color:#98A2B3;font-size:11px;font-weight:700}
.timeline-v237{display:block!important;margin:0!important}
.timeline-event-v237{position:relative!important;display:grid!important;grid-template-columns:52px 34px minmax(0,1fr)!important;gap:0 12px!important;align-items:start!important;min-height:76px!important;margin:0!important;padding:14px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;animation:none!important}
.timeline-event-v237+.timeline-event-v237{border-top:1px solid #EAECF0!important}.timeline-event-v237:hover{transform:none!important;box-shadow:none!important}
.timeline-event-v237 .timeline-time{position:static!important;grid-column:1!important;grid-row:1!important;padding:8px 0 0!important;color:#98A2B3!important;font-size:11px!important;font-weight:700!important;line-height:1!important;text-align:left}
.timeline-marker{position:relative;grid-column:2;grid-row:1;align-self:stretch;min-height:48px}.timeline-marker:after{content:"";position:absolute;left:16px;top:36px;bottom:-29px;width:1px;background:#E4E7EC}.timeline-event-v237:last-child .timeline-marker:after{display:none}
.timeline-event-v237 .timeline-symbol{position:relative;z-index:1;width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border:1px solid #EAECF0!important;border-radius:50%!important;background:#F8FAFC!important;font-size:15px!important;box-shadow:none!important}
.timeline-content{grid-column:3;grid-row:1;min-width:0;padding-top:1px}.timeline-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.timeline-event-v237 .timeline-title{min-width:0;min-height:0!important;padding:4px 0 0!important;color:#101828!important;font-size:14px!important;font-weight:750!important;line-height:1.3!important}
.timeline-event-v237 .timeline-summary{margin:4px 0 0!important;color:#667085!important;font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere}
.timeline-insight-compact{position:relative;flex:0 0 auto;margin:0!important;padding:0!important;border:0!important}.timeline-insight-compact>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:auto!important;min-width:28px!important;min-height:28px!important;margin:0!important;padding:0 7px!important;list-style:none;cursor:pointer;border:1px solid #E4E7EC!important;border-radius:999px!important;background:#fff!important;color:#667085!important;font-size:10px!important;font-weight:750!important;line-height:1!important}.timeline-insight-compact>summary::-webkit-details-marker{display:none}
.timeline-info-icon{width:14px;height:14px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;font-size:9px;font-family:Georgia,serif;font-weight:700}
.timeline-insight-compact .timeline-insight-body{margin:8px 0 0!important;padding:11px 12px!important;border:1px solid #EAECF0!important;border-radius:11px!important;background:#F8FAFC!important;color:#475467!important;font-size:11px!important;line-height:1.5!important;box-shadow:none!important}
.timeline-insight-compact.good>summary,.timeline-insight-compact.achievement>summary{color:#087F6B!important}.timeline-insight-compact.improve>summary{color:#9A6700!important}.timeline-insight-compact.attention>summary{color:#B42318!important}
.timeline-empty{padding:18px 0 20px;border-top:1px solid #EAECF0}.timeline-empty strong{display:block;color:#344054;font-size:13px}.timeline-empty p{margin:4px 0 0;color:#98A2B3;font-size:11px}
@media(max-width:680px){
.timeline-section-v237{margin-top:20px!important;padding:15px 14px 5px!important;border-radius:17px!important}.timeline-section-head{margin-bottom:6px}.timeline-section-head p{display:none}.timeline-section-head>span{font-size:10px}
.timeline-event-v237{grid-template-columns:40px 28px minmax(0,1fr)!important;gap:0 9px!important;min-height:68px!important;padding:13px 0!important}.timeline-event-v237 .timeline-time{padding-top:7px!important;font-size:10px!important}.timeline-marker{min-height:42px}.timeline-marker:after{left:13px;top:30px;bottom:-27px}.timeline-event-v237 .timeline-symbol{width:28px!important;height:28px!important;font-size:13px!important}.timeline-event-v237 .timeline-title{padding-top:2px!important;font-size:13px!important}.timeline-event-v237 .timeline-summary{margin-top:3px!important;font-size:11px!important;line-height:1.42!important}.timeline-title-row{gap:7px}.timeline-insight-compact>summary{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important}.timeline-info-label{display:none}
}


/* =========================================================
   Health OS v2.3.8 · Timeline Feedback Layout
   Feedback belongs to the event content and never escapes it.
   ========================================================= */

/* Make the event content the positioning/context boundary */
.timeline-event-v237 .timeline-content{
  min-width:0 !important;
  overflow:visible !important;
}

/* Keep title + feedback trigger aligned cleanly */
.timeline-title-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:start !important;
  gap:10px !important;
}

/* Details becomes a compact control in the title row */
.timeline-insight-compact{
  position:relative !important;
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}

/* Trigger */
.timeline-insight-compact > summary{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  min-width:0 !important;
  width:auto !important;
  height:28px !important;
  min-height:28px !important;
  padding:0 9px !important;
  margin:0 !important;
  border:1px solid #E4E7EC !important;
  border-radius:999px !important;
  background:#FFFFFF !important;
  box-shadow:none !important;
  color:#667085 !important;
  cursor:pointer !important;
  list-style:none !important;
  font-size:10px !important;
  font-weight:750 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.timeline-insight-compact > summary::-webkit-details-marker{display:none !important}
.timeline-insight-compact > summary::marker{display:none !important}

.timeline-info-icon{
  width:14px !important;
  height:14px !important;
  flex:0 0 14px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid currentColor !important;
  border-radius:50% !important;
  font-family:Georgia,serif !important;
  font-size:9px !important;
  font-weight:700 !important;
  line-height:1 !important;
}

/* Expanded feedback must live beneath the whole event content */
.timeline-insight-compact[open]{
  grid-column:1 / -1 !important;
}

/* We cannot make details body span the sibling title column,
   so position it as a full-width inline panel relative to content. */
.timeline-insight-compact .timeline-insight-body{
  position:absolute !important;
  top:36px !important;
  right:0 !important;
  z-index:10 !important;

  width:min(520px, calc(100vw - 140px)) !important;
  max-width:100% !important;

  margin:0 !important;
  padding:12px 14px !important;

  border:1px solid #E4E7EC !important;
  border-radius:12px !important;
  background:#FFFFFF !important;
  box-shadow:0 10px 28px rgba(16,24,40,.10) !important;

  color:#475467 !important;
  font-size:11px !important;
  line-height:1.5 !important;
}

/* Arrow */
.timeline-insight-compact .timeline-insight-body::before{
  content:"" !important;
  position:absolute !important;
  top:-6px !important;
  right:14px !important;
  width:11px !important;
  height:11px !important;
  background:#FFFFFF !important;
  border-left:1px solid #E4E7EC !important;
  border-top:1px solid #E4E7EC !important;
  transform:rotate(45deg) !important;
}

.timeline-insight-compact .timeline-insight-body strong{
  display:block !important;
  margin:0 0 5px !important;
  color:#344054 !important;
  font-size:12px !important;
  font-weight:750 !important;
  line-height:1.35 !important;
}

.timeline-insight-compact .timeline-insight-body p{
  margin:0 !important;
  color:#667085 !important;
  font-size:11px !important;
  line-height:1.5 !important;
}

/* Give opened events enough room so the following row doesn't overlap.
   The panel is intentionally compact. */
.timeline-event-v237:has(.timeline-insight-compact[open]){
  padding-bottom:108px !important;
}

/* Semantic colors stay only on the trigger */
.timeline-insight-compact.good>summary,
.timeline-insight-compact.achievement>summary{
  color:#087F6B !important;
  border-color:#D6ECE6 !important;
  background:#F8FCFB !important;
}
.timeline-insight-compact.improve>summary{
  color:#9A6700 !important;
  border-color:#F0E3BF !important;
  background:#FFFCF4 !important;
}
.timeline-insight-compact.attention>summary{
  color:#B42318 !important;
  border-color:#F2D7D3 !important;
  background:#FFF9F8 !important;
}
.timeline-insight-compact.observation>summary{
  color:#526075 !important;
}

/* Mobile: feedback becomes inline accordion, not a floating popover */
@media(max-width:680px){

  .timeline-title-row{
    grid-template-columns:minmax(0,1fr) 28px !important;
    gap:7px !important;
  }

  .timeline-insight-compact > summary{
    width:28px !important;
    min-width:28px !important;
    height:28px !important;
    min-height:28px !important;
    padding:0 !important;
  }

  .timeline-info-label{
    display:none !important;
  }

  .timeline-insight-compact[open]{
    grid-column:1 / -1 !important;
    width:100% !important;
  }

  .timeline-insight-compact .timeline-insight-body{
    position:static !important;
    width:100% !important;
    max-width:none !important;
    margin:8px 0 0 !important;
    padding:11px 12px !important;
    border-radius:10px !important;
    background:#F8FAFC !important;
    box-shadow:none !important;
  }

  .timeline-insight-compact .timeline-insight-body::before{
    display:none !important;
    content:none !important;
  }

  .timeline-event-v237:has(.timeline-insight-compact[open]){
    padding-bottom:13px !important;
  }

  .timeline-insight-compact .timeline-insight-body strong{
    font-size:11px !important;
  }

  .timeline-insight-compact .timeline-insight-body p{
    font-size:10.5px !important;
    line-height:1.5 !important;
  }
}

/* Fallback for browsers without :has(): no overlap, just natural event spacing */
@supports not selector(:has(*)){
  .timeline-insight-compact .timeline-insight-body{
    position:static !important;
    width:100% !important;
    max-width:none !important;
    margin-top:8px !important;
    box-shadow:none !important;
    background:#F8FAFC !important;
  }
  .timeline-insight-compact .timeline-insight-body::before{
    display:none !important;
  }
}


/* =========================================================
   Health OS v2.3.9 · Stable Inline Feedback Drawer
   The trigger never changes position.
   ========================================================= */

/* Retire details-based rules from v2.3.7/v2.3.8 */
.timeline-insight-compact{
  display:none !important;
}

/* Fixed trigger in the title row */
.timeline-feedback-trigger{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;

  min-width:0 !important;
  height:28px !important;
  padding:0 9px !important;
  margin:0 !important;

  border:1px solid #E4E7EC !important;
  border-radius:999px !important;
  background:#FFFFFF !important;
  box-shadow:none !important;

  color:#667085 !important;
  font:inherit !important;
  font-size:10px !important;
  font-weight:750 !important;
  line-height:1 !important;

  cursor:pointer !important;
  white-space:nowrap !important;

  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease !important;
}

.timeline-feedback-trigger:hover{
  background:#F8FAFC !important;
  border-color:#D0D5DD !important;
}

.timeline-feedback-trigger:focus-visible{
  outline:3px solid rgba(49,87,200,.18) !important;
  outline-offset:2px !important;
}

.timeline-feedback-trigger[aria-expanded="true"]{
  background:#F5F8FF !important;
  border-color:#C7D7FF !important;
  color:#3157C8 !important;
}

/* Semantic feedback colors remain subtle */
.timeline-feedback-trigger.good,
.timeline-feedback-trigger.achievement{
  color:#087F6B !important;
  border-color:#D6ECE6 !important;
  background:#F8FCFB !important;
}
.timeline-feedback-trigger.improve{
  color:#9A6700 !important;
  border-color:#F0E3BF !important;
  background:#FFFCF4 !important;
}
.timeline-feedback-trigger.attention{
  color:#B42318 !important;
  border-color:#F2D7D3 !important;
  background:#FFF9F8 !important;
}
.timeline-feedback-trigger.observation{
  color:#526075 !important;
}

/* Inline drawer belongs to the same event content */
.timeline-feedback-panel{
  position:static !important;
  display:grid !important;
  grid-template-columns:3px minmax(0,1fr) !important;
  gap:11px !important;

  width:100% !important;
  max-width:760px !important;

  margin:10px 0 2px !important;
  padding:0 !important;

  border:1px solid #E7EBF1 !important;
  border-radius:12px !important;
  background:#F8FAFC !important;
  box-shadow:none !important;

  overflow:hidden !important;
}

.timeline-feedback-panel[hidden]{
  display:none !important;
}

.timeline-feedback-accent{
  width:3px !important;
  min-height:100% !important;
  background:#98A2B3 !important;
}

.timeline-feedback-content{
  min-width:0 !important;
  padding:11px 13px 11px 0 !important;
}

.timeline-feedback-content strong{
  display:block !important;
  margin:0 0 4px !important;

  color:#344054 !important;
  font-size:12px !important;
  font-weight:750 !important;
  line-height:1.35 !important;
}

.timeline-feedback-content p{
  margin:0 !important;
  color:#667085 !important;
  font-size:11px !important;
  line-height:1.5 !important;
}

/* Semantic accent only, avoiding a loud colored card */
.timeline-feedback-panel.good .timeline-feedback-accent,
.timeline-feedback-panel.achievement .timeline-feedback-accent{
  background:#14A085 !important;
}

.timeline-feedback-panel.improve .timeline-feedback-accent{
  background:#D6A32C !important;
}

.timeline-feedback-panel.attention .timeline-feedback-accent{
  background:#D92D20 !important;
}

.timeline-feedback-panel.observation .timeline-feedback-accent{
  background:#667085 !important;
}

/* No special event padding is necessary anymore */
.timeline-event-v237:has(.timeline-feedback-trigger[aria-expanded="true"]){
  padding-bottom:14px !important;
}

/* Mobile: same mental model, icon-only trigger */
@media(max-width:680px){

  .timeline-title-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 28px !important;
    align-items:start !important;
    gap:7px !important;
  }

  .timeline-feedback-trigger{
    width:28px !important;
    min-width:28px !important;
    height:28px !important;
    padding:0 !important;
  }

  .timeline-feedback-trigger .timeline-info-label{
    display:none !important;
  }

  .timeline-feedback-panel{
    max-width:none !important;
    margin-top:8px !important;
    grid-template-columns:3px minmax(0,1fr) !important;
    border-radius:10px !important;
  }

  .timeline-feedback-content{
    padding:10px 11px 10px 0 !important;
  }

  .timeline-feedback-content strong{
    font-size:11px !important;
  }

  .timeline-feedback-content p{
    font-size:10.5px !important;
    line-height:1.5 !important;
  }
}


/* =========================================================
   Health OS v2.3.10 · Mobile Timeline Layout Fix
   Mobile uses a stacked event layout to preserve readable width.
   ========================================================= */

@media(max-width:680px){

  .timeline-section-v237{
    padding:15px 12px 6px !important;
  }

  .timeline-event-v237{
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) !important;
    grid-template-areas:
      "meta content" !important;
    column-gap:10px !important;
    row-gap:0 !important;
    align-items:start !important;

    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;

    padding:14px 0 !important;
    margin:0 !important;
  }

  /* Left rail: time above icon */
  .timeline-event-v237 .timeline-time{
    grid-area:meta !important;
    position:static !important;
    display:block !important;
    width:42px !important;
    margin:0 !important;
    padding:1px 0 0 !important;

    color:#98A2B3 !important;
    font-size:10px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    text-align:left !important;
    white-space:nowrap !important;
  }

  .timeline-marker{
    grid-area:meta !important;
    position:relative !important;
    width:28px !important;
    min-height:28px !important;
    margin-top:20px !important;
    align-self:start !important;
  }

  .timeline-marker::after{
    left:13px !important;
    top:30px !important;
    bottom:-42px !important;
  }

  .timeline-event-v237 .timeline-symbol{
    width:28px !important;
    height:28px !important;
    font-size:13px !important;
  }

  /* Content gets the full remaining width */
  .timeline-content{
    grid-area:content !important;
    width:100% !important;
    min-width:0 !important;
    padding:0 !important;
  }

  .timeline-title-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 28px !important;
    align-items:start !important;
    gap:8px !important;
    width:100% !important;
    min-width:0 !important;
  }

  .timeline-event-v237 .timeline-title{
    min-width:0 !important;
    width:auto !important;
    padding:1px 0 0 !important;

    color:#101828 !important;
    font-size:13px !important;
    font-weight:750 !important;
    line-height:1.3 !important;

    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }

  .timeline-event-v237 .timeline-summary{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin:5px 0 0 !important;
    padding:0 !important;

    color:#667085 !important;
    font-size:11px !important;
    line-height:1.45 !important;

    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }

  .timeline-feedback-trigger{
    justify-self:end !important;
    align-self:start !important;
  }

  .timeline-feedback-panel{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin-top:9px !important;
  }

  .timeline-feedback-content{
    min-width:0 !important;
  }

  .timeline-feedback-content p{
    white-space:normal !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
  }

  /* Ensure legacy desktop positioning cannot squeeze text */
  .timeline-event-v237 > *{
    min-width:0 !important;
  }
}

@media(max-width:380px){

  .timeline-section-v237{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .timeline-event-v237{
    grid-template-columns:38px minmax(0,1fr) !important;
    column-gap:8px !important;
  }

  .timeline-event-v237 .timeline-time{
    width:38px !important;
    font-size:9px !important;
  }

  .timeline-marker{
    width:26px !important;
  }

  .timeline-event-v237 .timeline-symbol{
    width:26px !important;
    height:26px !important;
    font-size:12px !important;
  }

  .timeline-marker::after{
    left:12px !important;
  }
}


/* =========================================================
   Health OS v2.4 · Home Information Architecture
   Home answers: How am I doing? What matters? What needs
   attention? What did I do?
   ========================================================= */

/* 1. Consistency score: keep the score primary, methodology secondary */
.today-hero-score{
  overflow:visible !important;
}
.consistency-explainer{
  position:relative;
  margin-top:8px;
}
.consistency-explainer > summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  list-style:none;
  color:#D0D5DD;
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
}
.consistency-explainer > summary::-webkit-details-marker{display:none}
.consistency-explainer-panel{
  position:absolute;
  z-index:30;
  top:24px;
  right:0;
  width:300px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:#FFFFFF;
  box-shadow:0 12px 30px rgba(16,24,40,.16);
  color:#475467;
  text-align:left;
}
.consistency-explainer-panel strong{
  display:block !important;
  margin:0 0 5px !important;
  color:#344054 !important;
  font-size:11px !important;
  line-height:1.35 !important;
}
.consistency-explainer-panel p{
  margin:0;
  font-size:10px;
  line-height:1.5;
}

/* 2. Today is a compact snapshot, not another dashboard */
.today-snapshot{
  margin:18px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.today-snapshot .today-section-head{
  margin:0 0 8px !important;
}
.today-snapshot .today-section-head h2{
  margin:0 !important;
  color:#101828;
  font-size:17px !important;
  line-height:1.2;
}
.today-snapshot-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:hidden;
  border:1px solid #E4E7EC;
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 1px 2px rgba(16,24,40,.025);
}
.today-snapshot-item{
  position:relative;
  min-width:0;
  padding:13px 16px 12px;
}
.today-snapshot-item + .today-snapshot-item{
  border-left:1px solid #EAECF0;
}
.today-snapshot-label{
  display:block;
  margin-bottom:4px;
  color:#667085;
  font-size:10px;
  font-weight:700;
}
.today-snapshot-item strong{
  display:block;
  color:#101828;
  font-size:20px;
  line-height:1.1;
  letter-spacing:-.025em;
}
.today-snapshot-item small{
  display:block;
  margin-top:4px;
  color:#667085;
  font-size:9.5px;
  line-height:1.3;
}
.today-snapshot-item.good small,
.today-snapshot-item.complete small,
.today-snapshot-item.achieved small{
  color:#087F6B;
}

/* 3. Attention stays conditional and visually close to the snapshot */
.today-snapshot + .today-attention{
  margin-top:10px !important;
}

/* 4. Timeline is now the only detailed activity/event record on Home */
.timeline-section-v237{
  margin-top:22px !important;
}

/* Hide legacy activity section defensively if old cached markup is ever injected */
.activity-card-conditional{
  display:none !important;
}

@media(max-width:680px){
  .consistency-explainer{
    margin-top:5px;
  }
  .consistency-explainer > summary{
    font-size:8px;
  }
  .consistency-explainer-panel{
    position:fixed;
    z-index:100;
    left:16px;
    right:16px;
    top:auto;
    bottom:18px;
    width:auto;
    max-width:none;
    padding:14px;
    border:1px solid #E4E7EC;
    color:#475467;
  }
  .consistency-explainer-panel strong{
    font-size:12px !important;
  }
  .consistency-explainer-panel p{
    font-size:11px;
  }

  .today-snapshot{
    margin-top:16px !important;
  }
  .today-snapshot-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    border-radius:14px;
  }
  .today-snapshot-item{
    padding:11px 8px 10px;
  }
  .today-snapshot-label{
    font-size:9px;
  }
  .today-snapshot-item strong{
    font-size:16px;
  }
  .today-snapshot-item small{
    margin-top:3px;
    font-size:8px;
    line-height:1.25;
  }
}

@media(max-width:380px){
  .today-snapshot-item{
    padding-left:6px;
    padding-right:6px;
  }
  .today-snapshot-item strong{
    font-size:15px;
  }
}


/* =========================================================
   Health OS v2.4.2 · Motion System
   Motion explains state change. It is never decoration.
   ========================================================= */

:root{
  --motion-fast:160ms;
  --motion-base:220ms;
  --motion-slow:320ms;

  --motion-ease:cubic-bezier(.2,.8,.2,1);
  --motion-ease-soft:cubic-bezier(.22,.61,.36,1);

  --motion-shift-xs:4px;
  --motion-shift-sm:6px;
}

/* -----------------------------
   Base reveal
   ----------------------------- */

.motion-reveal{
  opacity:1;
  transform:none;
}

.js-motion .motion-reveal{
  opacity:0;
  transform:translateY(var(--motion-shift-sm));
  transition:
    opacity var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
}

.js-motion .motion-reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* -----------------------------
   Score
   ----------------------------- */

.motion-score strong{
  display:block;
  transform-origin:center;
}

.js-motion .motion-score.is-score-updated strong{
  animation:hosScorePulse var(--motion-base) var(--motion-ease);
}

@keyframes hosScorePulse{
  0%{opacity:.72;transform:translateY(2px) scale(.985)}
  55%{opacity:1;transform:translateY(0) scale(1.015)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}

/* -----------------------------
   Focus
   ----------------------------- */

.motion-focus{
  transition:
    background-color var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease);
}

.js-motion .motion-focus.is-focus-updated .hero-focus-copy{
  animation:hosFocusUpdate var(--motion-base) var(--motion-ease);
}

@keyframes hosFocusUpdate{
  from{opacity:0;transform:translateY(var(--motion-shift-xs))}
  to{opacity:1;transform:translateY(0)}
}

/* -----------------------------
   Today snapshot states
   ----------------------------- */

.today-snapshot-item{
  transition:
    background-color var(--motion-base) var(--motion-ease),
    color var(--motion-base) var(--motion-ease);
}

.today-snapshot-item strong,
.today-snapshot-item small{
  transition:
    color var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease);
}

.js-motion .today-snapshot-item.is-state-updated{
  animation:hosStateUpdate var(--motion-base) var(--motion-ease);
}

@keyframes hosStateUpdate{
  0%{background-color:rgba(49,87,200,.00)}
  50%{background-color:rgba(49,87,200,.055)}
  100%{background-color:rgba(49,87,200,0)}
}

/* -----------------------------
   Timeline
   ----------------------------- */

.motion-timeline-item{
  opacity:1;
  transform:none;
}

.js-motion .motion-timeline-item.motion-enter{
  opacity:0;
  transform:translateY(var(--motion-shift-sm));
}

.js-motion .motion-timeline-item.motion-enter.motion-enter-active{
  opacity:1;
  transform:translateY(0);
  transition:
    opacity var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-ease);
}

/* -----------------------------
   Feedback drawer
   ----------------------------- */

.motion-feedback-panel{
  overflow:hidden !important;
  transform-origin:top;
}

.motion-feedback-panel:not([hidden]){
  animation:hosDrawerOpen var(--motion-base) var(--motion-ease);
}

@keyframes hosDrawerOpen{
  from{
    opacity:0;
    transform:translateY(-4px) scaleY(.985);
  }
  to{
    opacity:1;
    transform:translateY(0) scaleY(1);
  }
}

.timeline-feedback-trigger{
  transition:
    background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.timeline-feedback-trigger:active{
  transform:scale(.97);
}

/* -----------------------------
   Details controls
   ----------------------------- */

.hero-focus-details > summary,
.consistency-explainer > summary{
  transition:
    color var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease);
}

.hero-focus-details > summary:hover,
.consistency-explainer > summary:hover{
  opacity:.82;
}

/* -----------------------------
   Future chart hooks
   ----------------------------- */

.motion-chart-bar{
  transform-origin:bottom;
  animation:hosChartRise var(--motion-slow) var(--motion-ease-soft) both;
}

@keyframes hosChartRise{
  from{opacity:.25;transform:scaleY(.72)}
  to{opacity:1;transform:scaleY(1)}
}

.motion-chart-point{
  animation:hosChartPoint var(--motion-base) var(--motion-ease) both;
}

@keyframes hosChartPoint{
  from{opacity:0;transform:scale(.76)}
  to{opacity:1;transform:scale(1)}
}

/* -----------------------------
   Reduced motion
   ----------------------------- */

@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0ms !important;
  }

  .js-motion .motion-reveal,
  .js-motion .motion-timeline-item.motion-enter{
    opacity:1 !important;
    transform:none !important;
  }
}


/* =========================================================
   Health OS v2.4.3 · Today Snapshot Refinement
   Color identifies the habit. Status never depends on color alone.
   ========================================================= */

.today-snapshot{
  margin:18px 0 0 !important;
}

.today-snapshot-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 11px;
}

.today-snapshot-head h2{
  margin:0 !important;
  color:#101828 !important;
  font-size:18px !important;
  line-height:1.15 !important;
  letter-spacing:-.025em !important;
}

.today-snapshot-head p{
  margin:4px 0 0 !important;
  color:#98A2B3 !important;
  font-size:11px !important;
  line-height:1.4 !important;
}

.today-snapshot-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  overflow:hidden !important;
  border:1px solid #E4E7EC !important;
  border-radius:18px !important;
  background:#FFFFFF !important;
  box-shadow:0 2px 8px rgba(16,24,40,.035) !important;
}

.today-snapshot-item{
  --habit-accent:#667085;
  --habit-soft:#F8FAFC;

  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  min-height:122px !important;
  padding:18px 19px 15px !important;
  border:0 !important;
  border-radius:0 !important;
  background:
    linear-gradient(180deg,var(--habit-soft) 0,rgba(255,255,255,0) 44px),
    #FFFFFF !important;
  box-shadow:none !important;
}

.today-snapshot-item + .today-snapshot-item{
  border-left:1px solid #EAECF0 !important;
}

/* Habit identities */
.today-snapshot-item.movement{
  --habit-accent:#536DFF;
  --habit-soft:rgba(83,109,255,.065);
}

.today-snapshot-item.sleep{
  --habit-accent:#7657D8;
  --habit-soft:rgba(118,87,216,.065);
}

.today-snapshot-item.water{
  --habit-accent:#0AAFC0;
  --habit-soft:rgba(10,175,192,.07);
}

.today-snapshot-accent{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:var(--habit-accent);
}

.today-snapshot-meta{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}

.today-snapshot-icon{
  flex:0 0 auto;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:color-mix(in srgb,var(--habit-accent) 10%,white);
  color:var(--habit-accent);
  font-size:13px;
  font-weight:800;
  line-height:1;
}

.today-snapshot-label{
  margin:0 !important;
  color:#475467 !important;
  font-size:11px !important;
  font-weight:750 !important;
  line-height:1.2 !important;
}

.today-snapshot-item > strong{
  display:block !important;
  margin:13px 0 8px !important;
  color:#101828 !important;
  font-size:25px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:-.035em !important;
  white-space:nowrap !important;
}

.today-snapshot-item > small{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  margin:auto 0 0 !important;
  color:#667085 !important;
  font-size:10px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
}

.today-snapshot-state-dot{
  flex:0 0 auto;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#98A2B3;
}

/* Status is semantic. Habit color remains identity only. */
.today-snapshot-item.done > small{
  color:#087F6B !important;
}
.today-snapshot-item.done .today-snapshot-state-dot{
  background:#14A085;
}

.today-snapshot-item.state-progress > small{
  color:#3157C8 !important;
}
.today-snapshot-item.state-progress .today-snapshot-state-dot{
  background:#536DFF;
}

.today-snapshot-item.attention > small{
  color:#B54708 !important;
}
.today-snapshot-item.attention .today-snapshot-state-dot{
  background:#E5A23B;
}

.today-snapshot-item.neutral > small{
  color:#98A2B3 !important;
}
.today-snapshot-item.neutral .today-snapshot-state-dot{
  background:#98A2B3;
}

/* Motion remains restrained */
.js-motion .today-snapshot-item.is-state-updated .today-snapshot-icon{
  animation:hosHabitStateIcon var(--motion-base) var(--motion-ease);
}

@keyframes hosHabitStateIcon{
  0%{transform:scale(.92);opacity:.72}
  60%{transform:scale(1.04);opacity:1}
  100%{transform:scale(1);opacity:1}
}

/* -----------------------------
   Mobile
   ----------------------------- */

@media(max-width:680px){

  .today-snapshot{
    margin-top:16px !important;
  }

  .today-snapshot-head{
    margin-bottom:9px !important;
  }

  .today-snapshot-head h2{
    font-size:17px !important;
  }

  .today-snapshot-head p{
    margin-top:3px !important;
    font-size:10px !important;
  }

  .today-snapshot-grid{
    display:block !important;
    border-radius:16px !important;
  }

  .today-snapshot-item{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "meta value"
      "state value" !important;
    gap:4px 14px !important;
    align-items:center !important;

    min-height:74px !important;
    padding:13px 14px !important;

    background:#FFFFFF !important;
  }

  .today-snapshot-item + .today-snapshot-item{
    border-left:0 !important;
    border-top:1px solid #EAECF0 !important;
  }

  .today-snapshot-accent{
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    right:auto !important;
    width:3px !important;
    height:auto !important;
  }

  .today-snapshot-meta{
    grid-area:meta !important;
  }

  .today-snapshot-icon{
    width:20px !important;
    height:20px !important;
    border-radius:6px !important;
    font-size:12px !important;
  }

  .today-snapshot-label{
    font-size:10px !important;
  }

  .today-snapshot-item > strong{
    grid-area:value !important;
    justify-self:end !important;
    align-self:center !important;
    margin:0 !important;
    font-size:20px !important;
  }

  .today-snapshot-item > small{
    grid-area:state !important;
    margin:0 !important;
    padding-left:27px !important;
    font-size:9px !important;
  }

  .today-snapshot-state-dot{
    width:5px !important;
    height:5px !important;
  }
}

@media(max-width:360px){

  .today-snapshot-item{
    gap:3px 10px !important;
    padding:12px !important;
  }

  .today-snapshot-item > strong{
    font-size:18px !important;
  }

  .today-snapshot-item > small{
    padding-left:27px !important;
    font-size:8.5px !important;
  }
}

/* Fallback for browsers without color-mix */
@supports not (background:color-mix(in srgb, red 10%, white)){
  .today-snapshot-item.movement .today-snapshot-icon{
    background:#EEF0FF;
  }
  .today-snapshot-item.sleep .today-snapshot-icon{
    background:#F2EEFB;
  }
  .today-snapshot-item.water .today-snapshot-icon{
    background:#EAF9FA;
  }
}


/* =========================================================
   Health OS v2.4.4 · Mobile Today Cards
   Mobile-only visual refinement for stronger premium impact.
   Desktop remains unchanged.
   ========================================================= */

@media(max-width:680px){

  .today-snapshot{
    margin-top:18px !important;
  }

  .today-snapshot-head{
    margin:0 0 12px !important;
  }

  .today-snapshot-head h2{
    font-size:18px !important;
    line-height:1.15 !important;
  }

  .today-snapshot-head p{
    margin-top:4px !important;
    color:#7A8699 !important;
    font-size:10.5px !important;
    line-height:1.4 !important;
  }

  /* Remove the "single table" feel on mobile */
  .today-snapshot-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;

    overflow:visible !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  .today-snapshot-item{
    position:relative !important;

    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) auto !important;
    grid-template-areas:
      "icon label value"
      "icon state value" !important;
    align-items:center !important;

    min-height:82px !important;
    padding:13px 15px !important;
    gap:3px 11px !important;

    border:1px solid #E7EBF1 !important;
    border-radius:17px !important;
    background:#FFFFFF !important;
    box-shadow:0 4px 14px rgba(16,24,40,.045) !important;
    overflow:hidden !important;
  }

  .today-snapshot-item + .today-snapshot-item{
    border-top:1px solid #E7EBF1 !important;
  }

  /* Soft habit atmosphere */
  .today-snapshot-item.movement{
    background:
      radial-gradient(circle at 0% 50%,rgba(83,109,255,.085),rgba(83,109,255,0) 38%),
      #FFFFFF !important;
  }

  .today-snapshot-item.sleep{
    background:
      radial-gradient(circle at 0% 50%,rgba(118,87,216,.085),rgba(118,87,216,0) 38%),
      #FFFFFF !important;
  }

  .today-snapshot-item.water{
    background:
      radial-gradient(circle at 0% 50%,rgba(10,175,192,.09),rgba(10,175,192,0) 38%),
      #FFFFFF !important;
  }

  /* Accent rail becomes subtle and intentional */
  .today-snapshot-accent{
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    right:auto !important;

    width:3px !important;
    height:auto !important;

    border-radius:0 3px 3px 0 !important;
    background:var(--habit-accent) !important;
  }

  /* Move icon to its own premium tile */
  .today-snapshot-meta{
    display:contents !important;
  }

  .today-snapshot-icon{
    grid-area:icon !important;
    justify-self:start !important;

    width:38px !important;
    height:38px !important;

    border-radius:12px !important;
    background:color-mix(in srgb,var(--habit-accent) 12%,white) !important;
    border:1px solid color-mix(in srgb,var(--habit-accent) 18%,white) !important;

    color:var(--habit-accent) !important;
    font-size:16px !important;
    font-weight:850 !important;

    box-shadow:inset 0 1px 0 rgba(255,255,255,.6) !important;
  }

  .today-snapshot-label{
    grid-area:label !important;
    align-self:end !important;

    margin:0 !important;

    color:#667085 !important;
    font-size:10px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    letter-spacing:.045em !important;
    text-transform:uppercase !important;
  }

  .today-snapshot-item > strong{
    grid-area:value !important;
    justify-self:end !important;
    align-self:center !important;

    margin:0 !important;

    color:#101828 !important;
    font-size:23px !important;
    font-weight:850 !important;
    line-height:1 !important;
    letter-spacing:-.04em !important;
    white-space:nowrap !important;
  }

  .today-snapshot-item > small{
    grid-area:state !important;
    align-self:start !important;

    display:flex !important;
    align-items:center !important;
    gap:5px !important;

    margin:0 !important;
    padding:0 !important;

    font-size:9.5px !important;
    font-weight:750 !important;
    line-height:1.25 !important;
  }

  .today-snapshot-state-dot{
    width:6px !important;
    height:6px !important;
    flex:0 0 6px !important;
  }

  /* Small premium interaction without flashy motion */
  .today-snapshot-item{
    transition:
      transform var(--motion-fast) var(--motion-ease),
      box-shadow var(--motion-fast) var(--motion-ease),
      border-color var(--motion-fast) var(--motion-ease) !important;
  }

  .today-snapshot-item:active{
    transform:scale(.992) !important;
  }

  /* When all three are healthy, keep it subtle rather than adding another badge */
  .today-snapshot-item.done{
    border-color:#E3EAE8 !important;
  }
}

@media(max-width:380px){

  .today-snapshot-grid{
    gap:8px !important;
  }

  .today-snapshot-item{
    grid-template-columns:40px minmax(0,1fr) auto !important;
    min-height:76px !important;
    padding:12px 12px !important;
    gap:3px 9px !important;
    border-radius:15px !important;
  }

  .today-snapshot-icon{
    width:34px !important;
    height:34px !important;
    border-radius:10px !important;
    font-size:15px !important;
  }

  .today-snapshot-label{
    font-size:9px !important;
  }

  .today-snapshot-item > strong{
    font-size:20px !important;
  }

  .today-snapshot-item > small{
    font-size:8.8px !important;
  }
}

/* Fallback for browsers without color-mix */
@supports not (background:color-mix(in srgb, red 10%, white)){
  @media(max-width:680px){
    .today-snapshot-item.movement .today-snapshot-icon{
      background:#EEF0FF !important;
      border-color:#DDE2FF !important;
    }

    .today-snapshot-item.sleep .today-snapshot-icon{
      background:#F2EEFB !important;
      border-color:#E4DCF7 !important;
    }

    .today-snapshot-item.water .today-snapshot-icon{
      background:#EAF9FA !important;
      border-color:#D3F0F2 !important;
    }
  }
}


/* =========================================================
   Health OS v2.4.5 · Premium Today Hover System
   High-end interaction without decorative excess.
   ========================================================= */

/* Prepare each habit area for premium micro-interaction */
.today-snapshot-item{
  isolation:isolate !important;
  overflow:hidden !important;
  transition:
    transform 240ms cubic-bezier(.2,.8,.2,1),
    box-shadow 240ms cubic-bezier(.2,.8,.2,1),
    border-color 220ms cubic-bezier(.2,.8,.2,1),
    background-color 220ms cubic-bezier(.2,.8,.2,1) !important;
}

/* Soft colored spotlight */
.today-snapshot-item::before{
  content:"" !important;
  position:absolute !important;
  z-index:-1 !important;
  width:170px !important;
  height:170px !important;
  right:-78px !important;
  top:-82px !important;
  border-radius:50% !important;
  pointer-events:none !important;

  background:
    radial-gradient(
      circle,
      color-mix(in srgb,var(--habit-accent) 16%,transparent) 0%,
      color-mix(in srgb,var(--habit-accent) 7%,transparent) 38%,
      transparent 72%
    ) !important;

  opacity:.28 !important;
  transform:scale(.82) !important;

  transition:
    opacity 260ms cubic-bezier(.2,.8,.2,1),
    transform 300ms cubic-bezier(.2,.8,.2,1) !important;
}

/* Fine premium sheen */
.today-snapshot-item::after{
  content:"" !important;
  position:absolute !important;
  z-index:0 !important;
  inset:0 !important;
  pointer-events:none !important;

  background:
    linear-gradient(
      112deg,
      transparent 22%,
      rgba(255,255,255,0) 38%,
      rgba(255,255,255,.52) 49%,
      rgba(255,255,255,0) 60%,
      transparent 76%
    ) !important;

  opacity:0 !important;
  transform:translateX(-48%) !important;
}

/* Keep content over the sheen */
.today-snapshot-item > *{
  position:relative;
  z-index:1;
}

.today-snapshot-icon{
  transition:
    transform 240ms cubic-bezier(.2,.8,.2,1),
    box-shadow 240ms cubic-bezier(.2,.8,.2,1),
    background-color 220ms cubic-bezier(.2,.8,.2,1) !important;
}

.today-snapshot-item > strong{
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    color 220ms cubic-bezier(.2,.8,.2,1),
    letter-spacing 220ms cubic-bezier(.2,.8,.2,1) !important;
}

.today-snapshot-accent{
  transition:
    height 240ms cubic-bezier(.2,.8,.2,1),
    width 240ms cubic-bezier(.2,.8,.2,1),
    box-shadow 240ms cubic-bezier(.2,.8,.2,1),
    opacity 220ms cubic-bezier(.2,.8,.2,1) !important;
}

/* Desktop / precision pointer only */
@media(hover:hover) and (pointer:fine){

  .today-snapshot-item{
    cursor:default !important;
  }

  .today-snapshot-item:hover{
    transform:translateY(-4px) !important;
    border-color:color-mix(in srgb,var(--habit-accent) 24%,#E4E7EC) !important;
    box-shadow:
      0 14px 34px rgba(16,24,40,.09),
      0 3px 8px rgba(16,24,40,.04) !important;
  }

  .today-snapshot-item:hover::before{
    opacity:.82 !important;
    transform:scale(1.05) !important;
  }

  .today-snapshot-item:hover::after{
    animation:hosPremiumSheen 720ms cubic-bezier(.2,.8,.2,1) 1 !important;
  }

  .today-snapshot-item:hover .today-snapshot-icon{
    transform:translateY(-1px) scale(1.075) !important;
    box-shadow:
      0 7px 16px color-mix(in srgb,var(--habit-accent) 15%,transparent),
      inset 0 1px 0 rgba(255,255,255,.75) !important;
  }

  .today-snapshot-item:hover > strong{
    transform:translateY(-1px) !important;
    color:color-mix(in srgb,var(--habit-accent) 34%,#101828) !important;
    letter-spacing:-.045em !important;
  }

  .today-snapshot-item:hover .today-snapshot-accent{
    box-shadow:
      0 0 0 1px color-mix(in srgb,var(--habit-accent) 14%,transparent),
      0 0 14px color-mix(in srgb,var(--habit-accent) 24%,transparent) !important;
  }

  /* Unified desktop surface: avoid visible gaps when individual cells lift */
  .today-snapshot-grid{
    overflow:visible !important;
  }

  .today-snapshot-item{
    border-radius:14px !important;
  }

  .today-snapshot-item + .today-snapshot-item{
    border-left-color:transparent !important;
  }

  .today-snapshot-grid{
    gap:8px !important;
    padding:8px !important;
    background:#F8FAFC !important;
  }
}

@keyframes hosPremiumSheen{
  0%{
    opacity:0;
    transform:translateX(-52%);
  }
  20%{
    opacity:.34;
  }
  70%{
    opacity:.18;
  }
  100%{
    opacity:0;
    transform:translateX(52%);
  }
}

/* Touch response: tactile, not hover-simulated */
@media(hover:none), (pointer:coarse){
  .today-snapshot-item:active{
    transform:scale(.988) !important;
    box-shadow:0 2px 8px rgba(16,24,40,.05) !important;
  }

  .today-snapshot-item:active .today-snapshot-icon{
    transform:scale(.96) !important;
  }
}

/* Preserve v2.4.4 mobile card layout */
@media(max-width:680px){

  .today-snapshot-grid{
    overflow:visible !important;
  }

  .today-snapshot-item{
    border-radius:17px !important;
  }

  .today-snapshot-item::before{
    width:135px !important;
    height:135px !important;
    right:-70px !important;
    top:-68px !important;
    opacity:.22 !important;
  }

  .today-snapshot-item::after{
    display:none !important;
  }
}

/* Accessibility: motion is optional, information is not */
@media(prefers-reduced-motion:reduce){

  .today-snapshot-item,
  .today-snapshot-icon,
  .today-snapshot-item > strong,
  .today-snapshot-accent,
  .today-snapshot-item::before,
  .today-snapshot-item::after{
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }

  .today-snapshot-item:hover{
    transform:none !important;
  }

  .today-snapshot-item:hover::after{
    animation:none !important;
  }
}

/* Fallback when color-mix is unavailable */
@supports not (color:color-mix(in srgb, red 10%, white)){
  @media(hover:hover) and (pointer:fine){
    .today-snapshot-item:hover{
      border-color:#D7DCE5 !important;
    }

    .today-snapshot-item:hover > strong{
      color:#101828 !important;
    }
  }

  .today-snapshot-item::before{
    background:radial-gradient(circle,rgba(83,109,255,.08),transparent 72%) !important;
  }
}


/* =========================================================
   Health OS v2.4.6 · Health Field Interaction
   Signature interaction for Today habit cards.
   ========================================================= */

.today-snapshot-item{
  --field-x:50%;
  --field-y:50%;
  --field-opacity:0;
  --field-scale:.96;

  position:relative !important;
  isolation:isolate !important;
  overflow:hidden !important;
}

/* Cursor-following health field */
.today-snapshot-item .health-field-layer{
  display:none;
}

.today-snapshot-item::before{
  content:"" !important;
  position:absolute !important;
  z-index:0 !important;
  inset:-1px !important;
  border-radius:inherit !important;
  pointer-events:none !important;

  background:
    radial-gradient(
      180px circle at var(--field-x) var(--field-y),
      color-mix(in srgb,var(--habit-accent) 16%,transparent) 0%,
      color-mix(in srgb,var(--habit-accent) 8%,transparent) 30%,
      color-mix(in srgb,var(--habit-accent) 3%,transparent) 48%,
      transparent 72%
    ) !important;

  opacity:var(--field-opacity) !important;
  transform:scale(var(--field-scale)) !important;

  transition:
    opacity 180ms cubic-bezier(.2,.8,.2,1),
    transform 260ms cubic-bezier(.2,.8,.2,1) !important;
}

/* Signature border trace */
.today-snapshot-item::after{
  content:"" !important;
  position:absolute !important;
  z-index:3 !important;
  inset:0 !important;
  border-radius:inherit !important;
  pointer-events:none !important;

  padding:1px !important;

  background:
    radial-gradient(
      130px circle at var(--field-x) var(--field-y),
      color-mix(in srgb,var(--habit-accent) 58%,white) 0%,
      color-mix(in srgb,var(--habit-accent) 24%,transparent) 42%,
      transparent 72%
    ) !important;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0) !important;
  -webkit-mask-composite:xor !important;
  mask-composite:exclude !important;

  opacity:0 !important;
  transition:opacity 180ms cubic-bezier(.2,.8,.2,1) !important;
}

/* Keep content above field */
.today-snapshot-item > *{
  position:relative;
  z-index:2;
}

/* Icon becomes the "sensor" of each habit */
.today-snapshot-icon{
  position:relative !important;
  overflow:visible !important;
}

.today-snapshot-icon::before{
  content:"" !important;
  position:absolute !important;
  z-index:-1 !important;
  inset:-7px !important;
  border-radius:15px !important;

  background:
    radial-gradient(
      circle,
      color-mix(in srgb,var(--habit-accent) 24%,transparent) 0%,
      color-mix(in srgb,var(--habit-accent) 10%,transparent) 46%,
      transparent 72%
    ) !important;

  opacity:0 !important;
  transform:scale(.72) !important;

  transition:
    opacity 220ms cubic-bezier(.2,.8,.2,1),
    transform 300ms cubic-bezier(.2,.8,.2,1) !important;
}

/* Value reacts more like a live instrument readout */
.today-snapshot-item > strong{
  transform-origin:right center !important;
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    color 220ms cubic-bezier(.2,.8,.2,1),
    text-shadow 220ms cubic-bezier(.2,.8,.2,1) !important;
}

/* Accent line becomes an energy rail */
.today-snapshot-accent{
  overflow:hidden !important;
}

.today-snapshot-accent::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;

  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255,255,255,.92) 48%,
      transparent 100%
    ) !important;

  opacity:0 !important;
  transform:translateY(-100%) !important;
}

/* Desktop signature interaction */
@media(hover:hover) and (pointer:fine){

  .today-snapshot-item:hover{
    --field-opacity:1;
    --field-scale:1;

    transform:translateY(-3px) scale(1.004) !important;

    box-shadow:
      0 16px 36px rgba(16,24,40,.10),
      0 5px 12px rgba(16,24,40,.045) !important;
  }

  .today-snapshot-item:hover::after{
    opacity:.92 !important;
  }

  .today-snapshot-item:hover .today-snapshot-icon{
    transform:translateY(-1px) scale(1.055) !important;
    box-shadow:
      0 8px 18px color-mix(in srgb,var(--habit-accent) 16%,transparent),
      inset 0 1px 0 rgba(255,255,255,.82) !important;
  }

  .today-snapshot-item:hover .today-snapshot-icon::before{
    opacity:1 !important;
    transform:scale(1) !important;
  }

  .today-snapshot-item:hover > strong{
    transform:translateX(-2px) scale(1.02) !important;
    color:color-mix(in srgb,var(--habit-accent) 30%,#101828) !important;
    text-shadow:
      0 0 18px color-mix(in srgb,var(--habit-accent) 10%,transparent) !important;
  }

  .today-snapshot-item:hover .today-snapshot-accent::after{
    opacity:1 !important;
    animation:hosEnergyRail 640ms cubic-bezier(.2,.8,.2,1) 1 !important;
  }
}

@keyframes hosEnergyRail{
  0%{
    transform:translateY(-100%);
    opacity:0;
  }
  20%{
    opacity:.9;
  }
  70%{
    opacity:.65;
  }
  100%{
    transform:translateY(100%);
    opacity:0;
  }
}

/* Touch: subtle compression only */
@media(hover:none), (pointer:coarse){
  .today-snapshot-item{
    --field-opacity:.18;
    --field-scale:1;
  }

  .today-snapshot-item:active{
    transform:scale(.988) !important;
  }

  .today-snapshot-item:active .today-snapshot-icon{
    transform:scale(.96) !important;
  }

  .today-snapshot-item:active > strong{
    transform:scale(.985) !important;
  }
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){

  .today-snapshot-item{
    --field-opacity:0 !important;
    --field-scale:1 !important;
  }

  .today-snapshot-item,
  .today-snapshot-item::before,
  .today-snapshot-item::after,
  .today-snapshot-icon,
  .today-snapshot-icon::before,
  .today-snapshot-item > strong,
  .today-snapshot-accent,
  .today-snapshot-accent::after{
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
}

/* Fallback for no color-mix support */
@supports not (color:color-mix(in srgb, red 10%, white)){
  .today-snapshot-item::before{
    background:
      radial-gradient(
        180px circle at var(--field-x) var(--field-y),
        rgba(83,109,255,.09),
        transparent 70%
      ) !important;
  }

  .today-snapshot-item::after{
    display:none !important;
  }

  .today-snapshot-icon::before{
    background:radial-gradient(circle,rgba(83,109,255,.13),transparent 72%) !important;
  }
}


/* =========================================================
   Health OS v2.4.7 · Functional Today Cards
   Clearer hierarchy, quieter interaction, responsive utility.
   ========================================================= */

/* Completely retire the P2.4.6 Health Field effect inside Today. */
.today-snapshot-item,
.today-snapshot-item:hover,
.today-snapshot-item:active{
  --field-opacity:0 !important;
  --field-scale:1 !important;
  transform:none !important;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease !important;
}

.today-snapshot-item::before,
.today-snapshot-item::after,
.today-snapshot-icon::before,
.today-snapshot-accent::after{
  display:none !important;
  content:none !important;
}

.today-snapshot-item:hover{
  box-shadow:0 5px 16px rgba(16,24,40,.05) !important;
}

.today-snapshot-item:hover .today-snapshot-icon,
.today-snapshot-item:hover > strong,
.today-snapshot-item:active .today-snapshot-icon,
.today-snapshot-item:active > strong{
  transform:none !important;
  text-shadow:none !important;
}

.today-snapshot-head{
  margin-bottom:11px !important;
}

.today-snapshot-head h2{
  font-size:18px !important;
  font-weight:800 !important;
  letter-spacing:-.025em !important;
}

.today-snapshot-head p{
  color:#7C8798 !important;
  font-size:11px !important;
}

/* Desktop: three independent, readable cards. */
.today-snapshot-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  padding:0 !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.today-snapshot-item{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  min-height:132px !important;
  padding:17px 18px 15px !important;
  border:1px solid #E5E9F0 !important;
  border-radius:18px !important;
  background:#FFFFFF !important;
  box-shadow:0 3px 12px rgba(16,24,40,.035) !important;
  overflow:hidden !important;
}

.today-snapshot-item + .today-snapshot-item{
  border-left:1px solid #E5E9F0 !important;
}

.today-snapshot-accent{
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:auto !important;
  height:3px !important;
  border-radius:18px 18px 0 0 !important;
  background:var(--habit-accent) !important;
  box-shadow:none !important;
}

.today-snapshot-meta{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}

.today-snapshot-icon{
  flex:0 0 auto !important;
  width:30px !important;
  height:30px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:10px !important;
  border:0 !important;
  background:color-mix(in srgb,var(--habit-accent) 10%,white) !important;
  color:var(--habit-accent) !important;
  box-shadow:none !important;
  font-size:14px !important;
}

.today-snapshot-label{
  margin:0 !important;
  color:#5F6B7B !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.03em !important;
  text-transform:none !important;
}

.today-snapshot-item > strong{
  display:block !important;
  margin:16px 0 9px !important;
  color:#101828 !important;
  font-size:28px !important;
  font-weight:820 !important;
  line-height:1 !important;
  letter-spacing:-.04em !important;
  white-space:nowrap !important;
  overflow:visible !important;
}

.today-snapshot-item > small{
  display:inline-flex !important;
  align-items:center !important;
  align-self:flex-start !important;
  gap:6px !important;
  margin:auto 0 0 !important;
  padding:5px 8px !important;
  border-radius:999px !important;
  background:#F7F9FC !important;
  color:#667085 !important;
  font-size:9.5px !important;
  font-weight:750 !important;
  line-height:1.2 !important;
}

.today-snapshot-state-dot{
  width:6px !important;
  height:6px !important;
}

.today-snapshot-item.done > small{
  background:#F0FBF7 !important;
  color:#087F6B !important;
}

.today-snapshot-item.state-progress > small{
  background:#F2F5FF !important;
  color:#3157C8 !important;
}

.today-snapshot-item.attention > small{
  background:#FFF7EC !important;
  color:#B54708 !important;
}

.today-snapshot-item.neutral > small{
  background:#F7F9FC !important;
  color:#98A2B3 !important;
}

/* Simple hover: recognition only, no spectacle. */
@media(hover:hover) and (pointer:fine){
  .today-snapshot-item:hover{
    border-color:color-mix(in srgb,var(--habit-accent) 22%,#E5E9F0) !important;
    box-shadow:0 6px 18px rgba(16,24,40,.055) !important;
  }
}

/* Tablet: cards stay readable without squeezing. */
@media(min-width:681px) and (max-width:900px){
  .today-snapshot-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .today-snapshot-item.water{
    grid-column:1 / -1 !important;
    min-height:104px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "meta value"
      "state value" !important;
    align-items:center !important;
    gap:4px 18px !important;
  }

  .today-snapshot-item.water .today-snapshot-meta{grid-area:meta !important}
  .today-snapshot-item.water > strong{
    grid-area:value !important;
    justify-self:end !important;
    margin:0 !important;
  }
  .today-snapshot-item.water > small{
    grid-area:state !important;
    margin:0 !important;
  }
}

/* Mobile: cards become efficient information rows. */
@media(max-width:680px){

  .today-snapshot{
    margin-top:17px !important;
  }

  .today-snapshot-head{
    margin-bottom:10px !important;
  }

  .today-snapshot-head h2{
    font-size:18px !important;
  }

  .today-snapshot-head p{
    margin-top:3px !important;
    font-size:10px !important;
  }

  .today-snapshot-grid{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  .today-snapshot-item{
    display:grid !important;
    grid-template-columns:38px minmax(0,1fr) auto !important;
    grid-template-areas:
      "icon label value"
      "icon state value" !important;
    align-items:center !important;
    gap:3px 10px !important;

    min-height:72px !important;
    padding:11px 13px !important;

    border-radius:15px !important;
    box-shadow:0 2px 8px rgba(16,24,40,.035) !important;
  }

  .today-snapshot-accent{
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    right:auto !important;
    width:3px !important;
    height:auto !important;
    border-radius:15px 0 0 15px !important;
  }

  .today-snapshot-meta{
    display:contents !important;
  }

  .today-snapshot-icon{
    grid-area:icon !important;
    width:34px !important;
    height:34px !important;
    border-radius:10px !important;
  }

  .today-snapshot-label{
    grid-area:label !important;
    align-self:end !important;
    font-size:10px !important;
    line-height:1.2 !important;
  }

  .today-snapshot-item > strong{
    grid-area:value !important;
    justify-self:end !important;
    align-self:center !important;
    margin:0 !important;
    font-size:20px !important;
  }

  .today-snapshot-item > small{
    grid-area:state !important;
    align-self:start !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    font-size:8.8px !important;
  }

  .today-snapshot-state-dot{
    width:5px !important;
    height:5px !important;
  }
}

@media(max-width:360px){
  .today-snapshot-item{
    grid-template-columns:34px minmax(0,1fr) auto !important;
    gap:3px 8px !important;
    padding:10px 11px !important;
  }

  .today-snapshot-icon{
    width:31px !important;
    height:31px !important;
  }

  .today-snapshot-item > strong{
    font-size:18px !important;
  }

  .today-snapshot-item > small{
    font-size:8.3px !important;
  }
}

/* Accessibility: no Today motion when reduced motion is requested. */
@media(prefers-reduced-motion:reduce){
  .today-snapshot-item,
  .today-snapshot-icon,
  .today-snapshot-item > strong{
    transition:none !important;
    animation:none !important;
    transform:none !important;
  }
}

/* Fallback for browsers without color-mix. */
@supports not (color:color-mix(in srgb, red 10%, white)){
  .today-snapshot-item.movement .today-snapshot-icon{background:#EEF1FF !important}
  .today-snapshot-item.sleep .today-snapshot-icon{background:#F2EEFB !important}
  .today-snapshot-item.water .today-snapshot-icon{background:#EAF9FA !important}
}


/* =========================================================
   Health OS v2.4.8 · Contextual Today Cards
   Each card answers: what, status, what it means right now.
   ========================================================= */

.today-snapshot-context{
  margin:9px 0 0 !important;
  padding-top:9px !important;
  border-top:1px solid #EEF1F5 !important;
  color:#8A94A5 !important;
  font-size:9.5px !important;
  line-height:1.4 !important;
}

/* Give useful context enough room without bloating the cards. */
.today-snapshot-item{
  min-height:158px !important;
}

/* Neutral cards should look intentionally unrecorded, not like failure. */
.today-snapshot-item.neutral{
  background:#FCFCFD !important;
  border-color:#ECEFF3 !important;
}

.today-snapshot-item.neutral > strong{
  color:#98A2B3 !important;
}

.today-snapshot-item.neutral .today-snapshot-icon{
  filter:saturate(.35) !important;
  opacity:.7 !important;
}

/* Context uses the habit color only as a tiny recognition cue. */
.today-snapshot-item.done .today-snapshot-context,
.today-snapshot-item.state-progress .today-snapshot-context,
.today-snapshot-item.attention .today-snapshot-context{
  color:#7C8798 !important;
}

/* Tablet keeps context readable below each card. */
@media(min-width:681px) and (max-width:900px){
  .today-snapshot-item{
    min-height:154px !important;
  }

  .today-snapshot-item.water{
    min-height:122px !important;
    grid-template-areas:
      "meta value"
      "state value"
      "context context" !important;
  }

  .today-snapshot-item.water .today-snapshot-context{
    grid-area:context !important;
    margin-top:8px !important;
  }
}

/* Mobile: compact row + one concise context line underneath. */
@media(max-width:680px){

  .today-snapshot-item{
    grid-template-columns:38px minmax(0,1fr) auto !important;
    grid-template-areas:
      "icon label value"
      "icon state value"
      ". context context" !important;

    min-height:88px !important;
    padding-bottom:10px !important;
  }

  .today-snapshot-context{
    grid-area:context !important;
    width:100% !important;
    margin:7px 0 0 !important;
    padding:7px 0 0 !important;
    border-top:1px solid #EEF1F5 !important;
    color:#8791A1 !important;
    font-size:8.7px !important;
    line-height:1.35 !important;
  }
}

@media(max-width:360px){
  .today-snapshot-item{
    grid-template-columns:34px minmax(0,1fr) auto !important;
    min-height:86px !important;
  }

  .today-snapshot-context{
    font-size:8.2px !important;
  }
}


/* =========================================================
   Health OS v2.5 · Feedback Intelligence Engine UI
   Insight -> Context -> Next action
   ========================================================= */

.timeline-feedback-content > strong{
  margin-bottom:6px !important;
}

.feedback-insight{
  margin:0 !important;
  color:#475467 !important;
  font-size:11px !important;
  line-height:1.52 !important;
}

.feedback-layer{
  margin-top:10px !important;
  padding-top:10px !important;
  border-top:1px solid #E8ECF2 !important;
}

.feedback-layer > span{
  display:block !important;
  margin-bottom:4px !important;
  color:#98A2B3 !important;
  font-size:8.5px !important;
  font-weight:850 !important;
  line-height:1.2 !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
}

.feedback-layer > p{
  margin:0 !important;
  color:#667085 !important;
  font-size:10.5px !important;
  line-height:1.5 !important;
}

.feedback-action{
  margin:10px -3px -2px !important;
  padding:9px 10px !important;
  border-top:0 !important;
  border-radius:9px !important;
  background:#F1F5FF !important;
}

.feedback-action > span{
  color:#5268B5 !important;
}

.feedback-action > p{
  color:#344054 !important;
  font-weight:650 !important;
}

/* Semantic action surfaces remain restrained. */
.timeline-feedback-panel.good .feedback-action,
.timeline-feedback-panel.achievement .feedback-action{
  background:#F0FAF6 !important;
}
.timeline-feedback-panel.good .feedback-action > span,
.timeline-feedback-panel.achievement .feedback-action > span{
  color:#087F6B !important;
}

.timeline-feedback-panel.improve .feedback-action{
  background:#FFF8EA !important;
}
.timeline-feedback-panel.improve .feedback-action > span{
  color:#9A6700 !important;
}

.timeline-feedback-panel.attention .feedback-action{
  background:#FFF4F2 !important;
}
.timeline-feedback-panel.attention .feedback-action > span{
  color:#B42318 !important;
}

@media(max-width:680px){
  .feedback-insight{
    font-size:10.5px !important;
  }

  .feedback-layer > p{
    font-size:10px !important;
  }

  .feedback-action{
    padding:9px !important;
  }
}
