/* 108 Pranayama · Water and Steps */
body:has(.hb){background:#F3EBDD}
.hb-bleed{background:radial-gradient(900px 420px at 50% -10%,#FFF6E8 0%,rgba(255,246,232,0) 70%),#F3EBDD;padding:clamp(18px,4vw,48px) 0 clamp(28px,5vw,56px);box-sizing:border-box}
.hb-water .hb-bleed,.hb-bleed:has(.hb-water){background:radial-gradient(900px 420px at 50% -10%,#EAF6FB 0%,rgba(234,246,251,0) 70%),#F3EBDD}
.hb{--ink:#2B211B;--muted:#6E6057;--line:#EADBC6;--card:#FFFDF8;--soft:#F7EFE3;--saffron:#C2601A;--deep:#9E4A12;--maroon:#7A2E2A;--indigo:#2F3A7A;--water:#1D7FA8;--green:#4C8A3E;
  max-width:640px;margin:0 auto;padding:0 16px;display:grid;gap:16px;grid-template-columns:minmax(0,1fr);font-family:"Mukta",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);font-size:16px;line-height:1.5;box-sizing:border-box}
.hb *{box-sizing:border-box}.hb>*,.hb #hb-app>*{min-width:0}
.hb [hidden]{display:none!important}
.hb p{margin:0}
.hb #hb-app{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.hb .hb-head{text-align:center;display:grid;gap:8px;justify-items:center}
.hb .hb-eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--saffron)}
.hb-water .hb-eyebrow{color:var(--water)}.hb-steps .hb-eyebrow{color:var(--green)}
.hb .hb-title{font-family:"Marcellus",Georgia,serif;font-weight:400;font-size:clamp(2rem,6vw,2.7rem);line-height:1.1;color:var(--maroon);margin:0;padding:0;border:0}
.hb .hb-lede{color:var(--muted);font-size:1.05rem;line-height:1.6;max-width:52ch}
.hb .hb-loading{text-align:center;color:var(--muted)}
.hb .hb-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:clamp(16px,4vw,26px);box-shadow:0 22px 50px -34px rgba(110,60,20,.45);display:grid;gap:12px}
.hb .hb-card h3{font-family:"Marcellus",Georgia,serif;font-weight:400;font-size:1.4rem;color:var(--maroon);margin:0;padding:0;border:0}
.hb .hb-hero{justify-items:center;text-align:center}
.hb .hb-note{color:var(--muted);font-size:.93rem}
.hb .hb-sub{color:var(--muted);font-weight:500}
.hb .hb-status{color:var(--muted);font-size:.93rem;min-height:1.2em}.hb .hb-status.err{color:#A3322A}
.hb .hb-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}
.hb .hb-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 22px;border-radius:999px;border:0;background:linear-gradient(135deg,#F09A4A,#C2601A);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.hb-water .hb-btn{background:linear-gradient(135deg,#4FB8DC,#1D7FA8)}
.hb-steps .hb-btn{background:linear-gradient(135deg,#8CC152,#4C8A3E)}
.hb .hb-btn.big{min-height:58px;font-size:1.15rem;padding:12px 30px;flex:1 1 auto;max-width:360px}
.hb .hb-btn.ghost{background:transparent;color:var(--deep);border:1px solid #DCCBB3}
.hb .hb-btn:disabled{opacity:.4;cursor:not-allowed}
.hb .hb-btn:focus-visible,.hb .hb-chip:focus-visible,.hb .hb-link:focus-visible{outline:3px solid #F2B98B;outline-offset:2px}
.hb .hb-link{background:none;border:0;padding:4px 0;color:var(--deep);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.hb input[type=number],.hb input[type=time]{font:inherit;font-size:1rem;color:var(--ink);background:#fff;border:1px solid #DCCBB3;border-radius:12px;padding:10px 12px;min-height:48px}
.hb input[type=number]{width:150px}
.hb input:focus{outline:3px solid #F2B98B;outline-offset:1px;border-color:var(--saffron)}
/* water */
.hb .hb-glass{width:min(200px,52vw);height:auto}
.hb .hb-water{transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.hb .hb-wave{animation:hbWave 3.2s linear infinite}
@keyframes hbWave{from{transform:translateX(0)}to{transform:translateX(200px)}}
.hb .hb-count b{font-family:"Marcellus",Georgia,serif;font-weight:400;font-size:3.4rem;color:var(--water);line-height:1}
.hb .hb-count span{font-size:1.2rem;color:var(--muted)}
.hb .hb-drops{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:420px}
.hb .hb-drops i{width:18px;height:24px;background:#DCEFF6;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;clip-path:path('M9 0 C13 7 18 12 18 16 A9 8 0 0 1 0 16 C0 12 5 7 9 0Z')}
.hb .hb-drops i.on{background:#1D7FA8}
.hb .hb-stepper{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap}
.hb .hb-stepper b{font-family:"Marcellus",Georgia,serif;font-weight:400;font-size:2.4rem;color:var(--maroon);min-width:2ch;text-align:center}
.hb .hb-stepper .hb-btn{width:52px;padding:0;font-size:1.4rem}
.hb .hb-hours{display:flex;flex-wrap:wrap;gap:12px}
.hb .hb-hours label{display:grid;gap:4px;font-weight:600;flex:1 1 140px}
.hb .hb-switch{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:1.05rem}
.hb .hb-switch input{position:absolute;opacity:0;width:1px;height:1px}
.hb .hb-switch span{width:56px;height:32px;border-radius:16px;background:#D9CDBD;position:relative;flex:none;transition:background .2s}
.hb .hb-switch span::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .2s}
.hb .hb-switch input:checked+span{background:var(--water)}
.hb .hb-switch input:checked+span::after{transform:translateX(24px)}
.hb .hb-switch input:focus-visible+span{outline:3px solid #F2B98B;outline-offset:2px}
/* steps */
.hb .hb-ring{width:min(280px,70vw);height:auto}
.hb .hb-ring circle{transition:stroke-dashoffset .6s ease}
.hb .hb-ring-n{font-family:"Marcellus",Georgia,serif;font-size:38px;fill:var(--maroon)}
.hb .hb-ring-s{font-size:14px;fill:#6E6057}
.hb .hb-walking{border-color:#B9D79A;background:#F7FBF1}
.hb .hb-live{text-align:center}
.hb .hb-live b{display:block;font-family:"Marcellus",Georgia,serif;font-weight:400;font-size:3.6rem;color:var(--green);line-height:1}
.hb .hb-live span{color:var(--muted)}
.hb .hb-presets{display:flex;flex-wrap:wrap;gap:8px}
.hb .hb-chip{border:1px solid #DCCBB3;background:#fff;border-radius:999px;padding:8px 14px;font:inherit;font-weight:600;color:var(--ink);cursor:pointer;min-height:42px}
.hb .hb-chip[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}
/* week bars */
.hb .hb-week{position:relative;display:grid;grid-template-columns:repeat(7,1fr);gap:8px;height:170px;align-items:end;padding-bottom:26px}
.hb .hb-bar{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.hb .hb-bar i{display:block;width:100%;max-width:38px;background:#E6D8C4;border-radius:8px 8px 4px 4px;min-height:4px}
.hb .hb-bar.won i{background:linear-gradient(180deg,#F2B26A,#C2601A)}
.hb-water .hb-bar.won i{background:linear-gradient(180deg,#7FD3EC,#1D7FA8)}
.hb-steps .hb-bar.won i{background:linear-gradient(180deg,#A6D46E,#4C8A3E)}
.hb .hb-bar-v{font-size:.72rem;color:var(--muted);margin-bottom:2px;white-space:nowrap}
.hb .hb-bar-d{position:absolute;bottom:-24px;font-size:.85rem;color:var(--muted)}
.hb .hb-bar.today .hb-bar-d{color:var(--maroon);font-weight:700}
.hb .hb-goal-line{position:absolute;left:0;right:0;border-top:2px dashed #C9A13A;opacity:.7;pointer-events:none}
.hb .hb-links{text-align:center;font-weight:600}
.hb .hb-links a{color:var(--deep)}
.hb .hb-foot{text-align:center;color:var(--muted);font-size:.85rem;line-height:1.5}
/* badge pop-up (appended to <body>) */
.hb-modal{position:fixed!important;inset:0!important;z-index:2147483645!important;background:rgba(20,14,10,.62);display:grid;place-items:center;padding:16px;font-family:"Mukta",system-ui,sans-serif}
.hb-modal-card{position:relative;background:#FFFDF8;border-radius:20px;padding:20px;display:grid;gap:12px;justify-items:center;text-align:center;width:min(420px,100%);max-height:calc(100vh - 32px);overflow:auto;animation:hbPop .5s cubic-bezier(.2,1.4,.4,1)}
@keyframes hbPop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
.hb-modal-card h3{margin:0;padding:0 40px;font-family:"Marcellus",Georgia,serif;font-weight:400;font-size:1.3rem;line-height:1.25;color:#7A2E2A;text-wrap:balance}
.hb-modal-card img{width:min(300px,72vw);height:auto;border-radius:14px;box-shadow:0 18px 40px -18px rgba(0,0,0,.6)}
.hb-modal-card .hb-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.hb-modal-card .hb-btn{min-height:46px;padding:10px 20px;border-radius:999px;border:0;background:linear-gradient(135deg,#F09A4A,#C2601A);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.hb-modal-card .hb-btn.ghost{background:transparent;color:#9E4A12;border:1px solid #DCCBB3}
.hb-modal-card .hb-msg{color:#6E6057;font-size:.93rem;min-height:1.2em;margin:0}
.hb-modal-card .hb-x{position:absolute;top:8px;right:8px;width:40px;height:40px;border-radius:50%;border:0;background:#F3EBDD;font-size:1.4rem;cursor:pointer;color:#2B211B}
@media (prefers-reduced-motion:reduce){.hb .hb-wave{animation:none}.hb-modal-card{animation:none}.hb .hb-water,.hb .hb-ring circle{transition:none}}
