@font-face{font-family:'Sabbir Sorolota';src:url('assets/fonts/SabbirSorolota-num.woff2') format('woff2');unicode-range:U+09E6-09EF,U+09F2-09F3,U+09F9;font-weight:400 900;font-display:swap}
:root{
  --bg:#f5f8f7;--card:#ffffff;--ink:#13221d;--ink2:#56675f;--ink3:#8a9a93;--line:#e4ebe8;
  --acc:#0f766e;--acc2:#14b8a6;--accSoft:#e7f5f2;--accSoft2:#d3eee8;
  --water:#0284c7;--waterSoft:#e3f2fb;--warm:#c2410c;--warmSoft:#fff2ea;--gold:#b45309;--goldSoft:#fdf3e2;
  --red:#b91c1c;--redSoft:#fdecec;
  --shadow:0 1px 2px rgba(19,34,29,.04),0 4px 16px rgba(19,34,29,.06);
  --f:'Sabbir Sorolota','Hind Siliguri','Inter',system-ui,sans-serif;--nav:66px;--r:18px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#0e1614;--card:#16211e;--ink:#e7efec;--ink2:#a2b4ad;--ink3:#6f827b;--line:#25342f;
  --acc:#2dd4bf;--acc2:#14b8a6;--accSoft:#133a35;--accSoft2:#1a4a44;
  --water:#38bdf8;--waterSoft:#0f2f40;--warm:#fb923c;--warmSoft:#3a2216;--gold:#fbbf24;--goldSoft:#3a2d12;
  --red:#f87171;--redSoft:#3b1a1a;--shadow:0 1px 2px rgba(0,0,0,.3),0 4px 16px rgba(0,0,0,.25);color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
:where(svg){width:1em;height:1em;flex:0 0 auto}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{font-family:var(--f);background:var(--bg);color:var(--ink);font-size:15.5px;line-height:1.6;min-height:100svh;
  padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 14px);-webkit-tap-highlight-color:transparent}
b{font-weight:700}
a{color:var(--acc)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
[hidden]{display:none!important}

/* header */
.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);padding-top:env(safe-area-inset-top)}
.top-in{max-width:680px;margin:0 auto;padding:12px 16px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.top-t{min-width:0}
h1{font-size:clamp(20px,5.4vw,24px);font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sub{color:var(--ink2);font-size:13.5px}
.icon-btn{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--card);box-shadow:var(--shadow);flex:0 0 auto}
.icon-btn svg{width:20px;height:20px;color:var(--ink2)}
main{max-width:680px;margin:0 auto;padding:4px 16px 8px}
.h2{font-size:16.5px;font-weight:700;margin:22px 2px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.h2 small{font-size:13px;color:var(--ink2);font-weight:500}
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow)}

/* hero: now */
.now{background:linear-gradient(140deg,#0f766e,#0d9488 60%,#14b8a6);color:#fff;border-radius:22px;padding:18px 18px 14px;box-shadow:0 10px 30px rgba(15,118,110,.25);position:relative;overflow:hidden}
.now::after{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 70%)}
.now-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;position:relative;z-index:1}
.now-lbl{font-size:13px;opacity:.85}
.now h2{font-size:21px;font-weight:700;line-height:1.3;margin-top:2px}
.now-time{font-size:13px;opacity:.85;margin-top:2px}
.pct{min-width:64px;height:56px;padding:0 10px;flex:0 0 auto;border-radius:16px;background:rgba(255,255,255,.18);display:grid;place-items:center}
.pct span{font-weight:700;font-size:20px}
.now-list{margin-top:12px;position:relative;z-index:1;display:flex;flex-direction:column;gap:8px}
.now-item{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,.14);border-radius:14px;padding:10px 12px;text-align:left;width:100%}
.now-item .ck{border-color:#fff}
.now-item.done .ck{background:#fff}
.now-item.done .ck svg{color:var(--acc)}
.now-item p{font-size:14.5px;line-height:1.5}
.now-item.done p{opacity:.65;text-decoration:line-through}
.now-more{margin-top:10px;display:flex;justify-content:space-between;align-items:center;font-size:13.5px;position:relative;z-index:1}
.now-more button{color:#fff;font-weight:700;display:inline-flex;align-items:center;gap:4px}
.now-more svg{width:16px;height:16px}
.alldone{background:rgba(255,255,255,.14);border-radius:14px;padding:12px;font-size:14.5px;margin-top:12px;position:relative;z-index:1}

/* water */
.water{padding:16px;display:flex;align-items:center;gap:14px;margin-top:14px}
.water-ic{width:52px;height:52px;border-radius:16px;background:var(--waterSoft);color:var(--water);display:grid;place-items:center;flex:0 0 auto}
.water-ic svg{width:26px;height:26px}
.water-m{flex:1;min-width:0}
.water-m strong{font-size:17px}
.water-m small{display:block;color:var(--ink2);font-size:12.5px}
.wbar{height:8px;border-radius:99px;background:var(--waterSoft);margin-top:7px;overflow:hidden}
.wbar i{display:block;height:100%;background:var(--water);border-radius:99px;transition:width .3s}
.wbtns{display:flex;gap:6px}
.wbtn{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--waterSoft);color:var(--water)}
.wbtn.plus{background:var(--water);color:#fff}
.wbtn svg{width:20px;height:20px}

/* habits grid */
.habits{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.hab{background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:12px;display:flex;gap:10px;align-items:center;text-align:left;border:1.5px solid transparent;transition:background .15s,border-color .15s}
.hab .hi{width:36px;height:36px;border-radius:11px;background:var(--accSoft);color:var(--acc);display:grid;place-items:center;flex:0 0 auto}
.hab .hi svg{width:19px;height:19px}
.hab p{font-size:13.5px;font-weight:600;line-height:1.35}
.hab small{display:block;font-size:11.5px;color:var(--ink3);font-weight:500;margin-top:1px}
.hab.on{background:var(--accSoft);border-color:var(--acc)}
.hab.on .hi{background:var(--acc);color:#fff}

/* timeline */
.tl{position:relative;padding-left:4px}
.tl-row{display:flex;gap:12px;position:relative}
.tl-row::before{content:"";position:absolute;left:19px;top:42px;bottom:-6px;width:2px;background:var(--line)}
.tl-row:last-child::before{display:none}
.tl-dot{width:40px;height:40px;border-radius:13px;background:var(--card);box-shadow:var(--shadow);display:grid;place-items:center;color:var(--ink3);flex:0 0 auto;position:relative;z-index:1}
.tl-dot svg{width:19px;height:19px}
.tl-row.cur .tl-dot{background:var(--acc);color:#fff}
.tl-row.full .tl-dot{background:var(--accSoft);color:var(--acc)}
.tl-c{flex:1;min-width:0;padding-bottom:12px}
.tl-h{width:100%;text-align:left;background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:11px 14px;display:flex;align-items:center;gap:10px}
.tl-row.cur .tl-h{outline:1.5px solid var(--acc)}
.tl-h .tt{flex:1;min-width:0}
.tl-h strong{display:block;font-size:15px;line-height:1.35}
.tl-h small{font-size:12.5px;color:var(--ink2)}
.mini{height:5px;border-radius:99px;background:var(--line);margin-top:6px;overflow:hidden}
.mini i{display:block;height:100%;background:var(--acc);border-radius:99px}
.cnt{font-size:13px;font-weight:700;color:var(--acc);white-space:nowrap}
.chev{width:18px;height:18px;color:var(--ink3);transition:transform .25s}
.tl-row.open .chev{transform:rotate(180deg)}
.tl-b{display:none;background:var(--card);border-radius:16px;box-shadow:var(--shadow);margin-top:8px;padding:4px 10px}
.tl-row.open .tl-b{display:block}

/* tasks & items */
.task{display:flex;gap:12px;padding:12px 4px;border-top:1px solid var(--line);align-items:flex-start;width:100%;text-align:left}
.task:first-child{border-top:0}
.ck{width:24px;height:24px;border-radius:8px;border:2px solid var(--acc);flex:0 0 auto;display:grid;place-items:center;margin-top:2px;transition:background .15s}
.ck svg{width:15px;height:15px;color:#fff;opacity:0}
.done>.ck,.task.done .ck{background:var(--acc)}
.done>.ck svg,.task.done .ck svg{opacity:1}
.task.done .tx>p{color:var(--ink3);text-decoration:line-through;text-decoration-thickness:1px}
.tx{flex:1;min-width:0}
.tx p{font-size:15px}
.tx ul{list-style:none;margin-top:6px}
.tx li{font-size:13.5px;color:var(--ink2);padding-left:14px;position:relative;margin-top:3px}
.tx li::before{content:"";position:absolute;left:3px;top:.72em;width:5px;height:5px;border-radius:50%;background:var(--acc2)}
.meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:12.5px}
.many{color:var(--gold);font-weight:700;display:inline-flex;align-items:center;gap:4px}
.many svg{width:13px;height:13px}
.reel{color:var(--ink2);text-decoration:none;display:inline-flex;align-items:center;gap:4px;font-weight:600}
.reel svg{width:12px;height:12px}
.doc{color:var(--warm);font-weight:700;display:inline-flex;align-items:center;gap:4px}
.doc svg{width:13px;height:13px}
.note{font-size:13px;color:var(--ink2);background:var(--bg);border-radius:12px;padding:10px 12px;margin:8px 0}
.item{padding:12px 4px;border-top:1px solid var(--line)}
.item:first-child{border-top:0}
.grp{font-weight:700;font-size:14px;color:var(--acc);padding:16px 4px 4px;border-top:1px solid var(--line)}
.grp:first-child{border-top:0;padding-top:8px}
.list{padding:4px 12px}

/* segmented */
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;background:var(--card);box-shadow:var(--shadow);border-radius:14px;padding:4px;margin-bottom:12px;overflow-x:auto}
.seg button{padding:9px 6px;border-radius:10px;font-size:13.5px;font-weight:600;color:var(--ink2);white-space:nowrap}
.seg button.on{background:var(--acc);color:#fff}

/* food quick */
.fgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:6px}
.fbox{border-radius:16px;padding:14px;text-align:left;display:flex;flex-direction:column;gap:6px}
.fbox svg{width:22px;height:22px}
.fbox strong{font-size:15px}
.fbox small{font-size:12.5px;opacity:.85}
.fbox.yes{background:var(--accSoft);color:var(--acc)}
.fbox.no{background:var(--redSoft);color:var(--red)}
.fbox.cond{background:var(--goldSoft);color:var(--gold)}
.fbox.myth{background:var(--waterSoft);color:var(--water)}

/* progress */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:14px 10px;text-align:center}
.stat strong{display:block;font-size:24px;color:var(--acc);line-height:1.1}
.stat small{font-size:12px;color:var(--ink2)}
.bars{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:end;height:130px;padding:14px 14px 10px}
.bars div{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.bars i{width:100%;max-width:30px;border-radius:8px;background:var(--accSoft);position:relative;height:100%;overflow:hidden}
.bars i b{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,var(--acc2),var(--acc));border-radius:8px}
.bars span{font-size:12px;color:var(--ink2)}
.bars div.t span{color:var(--acc);font-weight:700}
.heat{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;padding:14px}
.heat i{aspect-ratio:1;border-radius:7px;background:var(--line);display:grid;place-items:center;font-size:11px;font-style:normal;color:var(--ink2)}
.heat i.l1{background:var(--accSoft2)}
.heat i.l2{background:#5eead4;color:#063b36}
.heat i.l3{background:var(--acc);color:#fff}
.heat i.t{outline:2px solid var(--acc);outline-offset:1px}
.streaks{padding:4px 14px}
.srow{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.srow:first-child{border-top:0}
.srow .hi{width:34px;height:34px;border-radius:10px;background:var(--accSoft);color:var(--acc);display:grid;place-items:center;flex:0 0 auto}
.srow .hi svg{width:17px;height:17px}
.srow p{flex:1;font-size:14px;font-weight:600}
.srow small{display:block;color:var(--ink3);font-weight:500;font-size:12px}
.srow strong{color:var(--gold);font-size:15px;white-space:nowrap}
.dots7{display:flex;gap:3px;margin-top:4px}
.dots7 i{width:9px;height:9px;border-radius:3px;background:var(--line)}
.dots7 i.y{background:var(--acc)}

/* mine */
.conds{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.cond{background:var(--card);box-shadow:var(--shadow);border-radius:14px;padding:11px 6px;font-size:13px;font-weight:600;line-height:1.3;border:1.5px solid transparent;min-height:52px}
.cond.on{border-color:var(--acc);background:var(--accSoft);color:var(--acc)}
.empty{text-align:center;color:var(--ink2);padding:26px 16px;font-size:14px}
.empty svg{width:36px;height:36px;color:var(--acc2);margin-bottom:8px}

/* all */
.sbox{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:14px;padding:0 14px;box-shadow:var(--shadow);margin-bottom:12px}
.sbox svg{width:18px;height:18px;color:var(--ink3)}
.sbox input{flex:1;border:0;background:none;font:inherit;color:var(--ink);padding:13px 0;font-size:16px;outline:none;min-width:0}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.sec{background:var(--card);border-radius:16px;padding:14px;box-shadow:var(--shadow);text-align:left;display:flex;flex-direction:column;gap:8px;min-height:120px}
.sec .hi{width:36px;height:36px;border-radius:11px;background:var(--accSoft);color:var(--acc);display:grid;place-items:center}
.sec .hi svg{width:19px;height:19px}
.sec strong{font-size:14.5px;line-height:1.35}
.sec small{color:var(--ink2);font-size:12.5px;margin-top:auto}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--acc);font-weight:600;margin:4px 0 10px;font-size:14.5px}
.back svg{width:17px;height:17px}
.acc{margin-bottom:10px}
.acc-h{width:100%;text-align:left;padding:13px 14px;display:flex;align-items:center;gap:10px}
.acc-h .hi{width:34px;height:34px;border-radius:10px;background:var(--accSoft);color:var(--acc);display:grid;place-items:center;flex:0 0 auto}
.acc-h .hi svg{width:17px;height:17px}
.acc-h .tt{flex:1;min-width:0}
.acc-h strong{display:block;font-size:15px;line-height:1.35}
.acc-h small{font-size:12.5px;color:var(--ink2)}
.acc-b{display:none;padding:0 12px 8px}
.acc.open .acc-b{display:block}
.acc.open .chev{transform:rotate(180deg)}
.hint{color:var(--ink2);font-size:13.5px;margin:6px 4px 10px}
.res{padding:12px 14px;margin-bottom:10px}
.res small{color:var(--acc);font-size:12px;font-weight:600}
mark{background:var(--goldSoft);color:inherit;border-radius:3px;padding:0 1px}
.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.quick button{background:var(--card);box-shadow:var(--shadow);border-radius:12px;padding:10px 6px;font-size:13.5px;font-weight:600}

/* sheet (modal) */
.sheet{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet-bg{position:absolute;inset:0;background:rgba(10,20,17,.35)}
.sheet-p{position:relative;background:var(--card);width:100%;max-width:680px;max-height:88svh;border-radius:22px 22px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;animation:up .25s ease}
@keyframes up{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.sheet h3{font-size:18px;margin-bottom:4px}
.sheet .lbl{font-size:13.5px;font-weight:700;color:var(--ink2);margin:16px 0 8px}
.opt2{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.opt2 button{border:1.5px solid var(--line);border-radius:14px;padding:12px;font-weight:600}
.opt2 button.on{border-color:var(--acc);background:var(--accSoft);color:var(--acc)}
.bigbtn{width:100%;margin-top:18px;background:var(--acc);color:#fff;border-radius:14px;padding:14px;font-weight:700;font-size:15.5px}
.ghost{width:100%;margin-top:8px;border:1.5px solid var(--line);border-radius:14px;padding:12px;font-weight:600;color:var(--ink2)}
.toast{position:fixed;left:50%;bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 14px);transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-size:14px;z-index:60;box-shadow:var(--shadow);max-width:90vw;text-align:center}

.foot{text-align:center;color:var(--ink3);font-size:12.5px;margin:28px 0 8px;line-height:1.8}
.foot a{color:var(--ink2);text-decoration:none;font-weight:600}
.foot a:hover{color:var(--acc)}

/* bottom nav */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);height:calc(var(--nav) + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);
  background:color-mix(in srgb,var(--card) 94%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--ink3);font-size:11.5px;font-weight:600;position:relative}
.tabs svg{width:22px;height:22px}
.tabs button.on{color:var(--acc)}
.tabs button.on::before{content:"";position:absolute;top:0;width:28px;height:3px;border-radius:0 0 3px 3px;background:var(--acc)}
@media (min-width:640px){.grid{grid-template-columns:repeat(3,1fr)}.habits{grid-template-columns:repeat(4,1fr)}.conds{grid-template-columns:repeat(4,1fr)}}
