/* 건강 탭 */
.hgrid{display:flex;flex-direction:column;gap:12px}
.hcol{display:flex;flex-direction:column;gap:12px}
.hhero .hbig{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin:2px 0 10px}
.hhero .hbig b{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1.1}
.hhero .hbig small{font-size:18px;font-weight:700;color:var(--muted)}
.hhero .hbig span{margin-left:auto;font-size:13px;font-weight:700;padding:5px 10px;border-radius:999px}
.hhero .hbig span.good{color:var(--good);background:color-mix(in srgb,var(--good) 12%,transparent)}
.hhero .hbig span.bad{color:var(--bad);background:color-mix(in srgb,var(--bad) 10%,transparent)}
.hprog{display:flex;align-items:center;gap:10px;--c:var(--accent)}
.hprog .vbar{flex:1;height:8px}
.hprog span{font-size:12px;font-weight:700;color:var(--muted)}
.hchart{width:100%;height:auto;margin:14px 0 6px;display:block}
.hchart .plan{stroke:var(--faint);stroke-width:1.5;stroke-dasharray:4 4}
.hchart .now{stroke:color-mix(in srgb,var(--accent) 35%,transparent);stroke-width:1}
.hchart .act{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.hchart .pt{fill:var(--accent);stroke:var(--card);stroke-width:1.5}
.hchart .lb{font-size:10px;fill:var(--faint);font-weight:600}
.hwin{display:grid;grid-template-columns:1fr auto;gap:8px;margin:8px 0}
.hwin .btn{width:auto;padding:0 20px;height:48px}
.hring2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.hr{display:flex;flex-direction:column;align-items:center;gap:6px}
.hr>small{font-size:13px;font-weight:700;color:var(--muted)}
.rg{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--c) calc(var(--p)*1%),color-mix(in srgb,var(--fg) 8%,transparent) 0)}
.rg>span{width:100px;height:100px;border-radius:50%;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center}
.rg b{font-size:22px;font-weight:800;letter-spacing:-.02em}
.rg small{font-size:11px;color:var(--muted);font-weight:600}
.hmeals{display:flex;flex-direction:column}
.hmeal{display:flex;align-items:flex-start;gap:10px;padding:11px 0}
.hmeal+.hmeal{border-top:1px solid var(--line)}
.hmeal .m{flex:1;display:flex;flex-direction:column;gap:3px;font-size:15px;font-weight:600}
.hmeal .m b{font-size:12px;font-weight:800;color:var(--accent-fg);margin-right:4px}
.hmeal .m small{font-size:12.5px;font-weight:500;color:var(--muted);line-height:1.45}
.hmeal .m small.tip{color:var(--fg);opacity:.75}
.hmeal .k{text-align:right;flex:none;display:flex;flex-direction:column}
.hmeal .k b{font-size:17px;font-weight:800}
.hmeal .k small{font-size:11.5px;color:var(--muted);font-weight:600}
.hmeal .x{color:var(--faint);font-size:13px;padding:4px 2px}
.hact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.hact div{display:flex;flex-direction:column;gap:2px;padding:0 8px}
.hact div:first-child{padding-left:0}
.hact div+div{border-left:1px solid var(--line)}
.hact b{font-size:20px;font-weight:800;letter-spacing:-.02em}
.hact small{font-size:11.5px;color:var(--muted);font-weight:600}
.hact+.note{margin-top:10px}
.hlist{margin:0 0 14px;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:15px}
.hlist li.c{list-style:none;margin-left:-18px;font-weight:700;color:var(--accent-fg)}
.hweek{margin-top:12px;font-size:14px}
.hweek summary{cursor:pointer;font-weight:700;color:var(--muted);padding:6px 0}
.hweek p{margin:6px 0}
.hweek p.on{color:var(--accent-fg);font-weight:700}
.hg{margin-bottom:12px}
.hg b{font-size:14.5px;font-weight:800}
.hg ul{margin:6px 0 0;padding-left:18px;font-size:14px;line-height:1.7;color:var(--fg)}
.hsteps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;font-size:14.5px;line-height:1.6}
.hsteps code{font-size:12.5px;background:var(--bg);padding:2px 6px;border-radius:6px;word-break:break-all}
@media(min-width:960px){
  .wrap>section[data-view="health"]{grid-column:1/-1}
  .hgrid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:16px}
}

/* 운동 기록 */
.hrec{background:var(--bg);border-radius:16px;padding:14px 16px;margin-bottom:14px}
.hrec>b{font-size:13.5px;font-weight:800;color:var(--accent-fg);display:block;margin-bottom:6px}
.hrec p{margin:0;font-size:15px;line-height:1.7;white-space:pre-wrap}
.hrec .hlist{margin:0}
.hsub{font-size:14px;font-weight:800;margin:4px 0 2px}
.hsync{text-decoration:none;height:46px;font-size:14.5px}
.hsyncmsg{font-size:13.5px;font-weight:700;border-radius:12px;padding:10px 12px;margin-bottom:12px;background:color-mix(in srgb,var(--bad) 10%,transparent);color:var(--bad)}.hsyncmsg.ok{background:color-mix(in srgb,var(--good) 12%,transparent);color:var(--good)}

/* 건강 기록 달력 */
.hkpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}
.hkpi div{display:flex;flex-direction:column;gap:2px;padding:0 8px}
.hkpi div:first-child{padding-left:0}
.hkpi div+div{border-left:1px solid var(--line)}
.hkpi b{font-size:21px;font-weight:800;letter-spacing:-.02em}
.hkpi b small{font-size:13px;margin-left:1px}
.hkpi>div>small{font-size:11.5px;color:var(--muted);font-weight:600}
.hcal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px 2px;text-align:center}
.hcal i{font-style:normal;font-size:12px;font-weight:600;color:var(--faint)}
.hcd{display:grid;place-items:center;padding:3px 0;border-radius:12px}
.hcd.tod{background:var(--accent-soft)}
.hcd.fut{opacity:.45}
.hring{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;position:relative}
.hring>span{width:30px;height:30px;border-radius:50%;background:var(--card);display:grid;place-items:center;font-size:13px;font-weight:700}
.hcd.tod .hring>span{background:var(--accent-soft)}
.hring.full>span{background:transparent;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.hleg{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;font-size:12px;font-weight:600;color:var(--muted);align-items:center}
.hleg span{display:inline-flex;align-items:center;gap:5px}
.hleg i{width:10px;height:10px;border-radius:3px;display:inline-block}
.hachs{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hachs span{font-size:13px;font-weight:700;padding:5px 10px;border-radius:999px;background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--muted)}
.hachs span.on{background:color-mix(in srgb,var(--c) 15%,transparent);color:color-mix(in srgb,var(--c) 80%,var(--fg))}
.hachs b{margin-left:auto;font-size:16px}
.hday-it{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.hday-it small{font-size:12.5px;color:var(--muted)}
@media(min-width:960px){.hring{width:44px;height:44px}.hring>span{width:35px;height:35px}}

/* 건강 탭 날짜 바 (탭 전체가 이 날짜 기준) */
.hdate{padding:16px 16px 14px}
.hdrow{display:flex;align-items:center;gap:10px}
.hdrow>button{width:40px;height:40px;border-radius:12px;background:var(--bg);font-size:18px;font-weight:700;display:grid;place-items:center;flex:none}
.hdrow>button:disabled{opacity:.35}
.hdl{flex:1;display:flex;align-items:center;justify-content:center;gap:8px}
.hdl b{font-size:17px;font-weight:800}
.hdl small{font-size:12px;font-weight:800;color:var(--accent-fg);background:var(--accent-soft);padding:3px 8px;border-radius:999px}
.hdl button{font-size:12.5px;font-weight:800;color:var(--accent-fg);background:var(--accent-soft);padding:5px 10px;border-radius:999px}
.hweekr{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-top:12px}
.hweekr .hcd{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 0}
.hweekr .hcd small{font-size:11.5px;font-weight:700;color:var(--faint)}
.hcd.sel{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--accent)}
.hcd.sel .hring>span{background:var(--accent-soft)}
@media(min-width:960px){.wrap>section[data-view="health"] .hdate{max-width:none}}
.hseg{display:flex;background:var(--bg);border-radius:12px;padding:3px;gap:2px;flex:none}.hseg button{height:34px;padding:0 12px;border-radius:9px;font-size:13.5px;font-weight:800;color:var(--muted)}.hseg button[aria-pressed="true"]{background:var(--card);color:var(--accent-fg);box-shadow:0 1px 3px rgba(0,0,0,.12)}.hdate .hkpi{margin-top:14px}.hdate .hcal{margin-top:4px}.hdate .hleg{margin-top:10px}
.hdl b{white-space:nowrap}.hdl{min-width:0}
.hdl{overflow:hidden}.hdl b{font-size:16px;overflow:hidden;text-overflow:ellipsis}.hdl b .yr{font-size:12px;color:var(--faint);font-weight:700;background:none;padding:0}.hdl button{padding:4px 8px;font-size:12px;flex:none}.hdrow{gap:6px}.hdrow>button{width:36px;height:36px}.hseg button{padding:0 10px}@media(max-width:420px){.hdl>small{display:none}}
.hmeal .k small+small{font-size:11px;opacity:.8}

/* 접기/펼치기 */
[data-fold] .head{align-items:center}
[data-fold] .head h2{cursor:pointer}
.foldb{width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--muted);font-size:16px;font-weight:800;display:grid;place-items:center;flex:none;margin-left:6px;transition:transform .2s}
[data-fold] .head h2{white-space:nowrap}[data-fold] .head .more{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:auto}
.fsum{display:none;margin:-6px 0 0;font-size:13.5px;font-weight:600;color:var(--muted);cursor:pointer}
.folded .fsum{display:block}
.card.folded>*:not(.head):not(.fsum){display:none!important}
.card.folded .head{margin-bottom:8px}
/* 기록 줄: 기본은 짧게, 누르면 구성·조언까지 */
.hmeal .m{cursor:pointer}
.hmeal:not(.open) .m small{display:none}
.hmeal:not(.open) .m>b + small,.hmeal:not(.open) .m small:first-of-type{display:none}
.hmeal .m::after{content:"자세히 ▾";font-size:11.5px;font-weight:700;color:var(--faint);margin-top:2px}
.hmeal.open .m::after{content:"접기 ▴"}

/* 2026-12-04 탄단지 */
.hmac{display:flex;gap:16px;align-items:center;background:var(--bg);border-radius:16px;padding:14px;margin-bottom:12px}
.hmac .donut{width:96px;height:96px;border-radius:50%;flex:none;display:grid;place-items:center}
.hmac .donut span{width:62px;height:62px;border-radius:50%;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center}
.hmac .donut b{font-size:15px;font-weight:800}.hmac .donut small{font-size:11px;color:var(--muted)}
.hmac .rows{flex:1;min-width:0;display:flex;flex-direction:column;gap:9px}
.hmac .mr .t{display:flex;align-items:center;gap:6px;font-size:13.5px}
.hmac .mr .dot{width:8px;height:8px;border-radius:50%;background:var(--c);flex:none}
.hmac .mr .g{margin-left:auto;font-weight:700}.hmac .mr .g small{color:var(--muted);font-weight:500}
.hmac .mr .pc{width:40px;text-align:right;font-weight:800;color:var(--c)}
.hmac .bar{height:5px;border-radius:3px;background:var(--line);margin-top:5px;overflow:hidden}.hmac .bar i{display:block;height:100%;background:var(--c);border-radius:3px}
.hmac .note{margin:0;font-size:12px}
.hmac{gap:12px;padding:12px}.hmac .donut{width:84px;height:84px}.hmac .donut span{width:54px;height:54px}.hmac .mr .t{font-size:13px;white-space:nowrap}.hmac .mr .g small{font-size:11px}.hmac .mr .pc{width:34px}
