/* Elen 2026-11-17: habit tracker — Unbounded, her palette (rose, blue, olive), paper cards */
.hab{--hc:32px}
.habhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 14px}
.habhead .btn.ghost{font-size:22px;line-height:1;padding:4px 12px}
.hmon{font-size:20px;font-weight:450;color:var(--red);min-width:170px;text-align:center}
.hpct{display:flex;align-items:center;gap:10px}
.hpct b{font-size:22px;font-weight:450;color:var(--blue)}
.hpct span{font-size:13px;color:#6b655c}
.hbar{width:140px;height:10px;border-radius:6px;background:#ece5d6;overflow:hidden}
.hbar i{display:block;height:100%;background:linear-gradient(90deg,#909b15,#4162e9);border-radius:6px;transition:width .3s}
.habscroll{overflow-x:auto;background:#fdfbf6;border-radius:24px;box-shadow:0 1px 2px rgba(70,50,20,.05),0 6px 18px rgba(70,50,20,.05);padding:6px 0 10px;-webkit-overflow-scrolling:touch}
.habt{border-collapse:separate;border-spacing:0;font-size:13px}
.habt th,.habt td{padding:0;text-align:center;vertical-align:middle}
.habt thead th{font-weight:350;color:#6b655c;padding:8px 0 6px;min-width:calc(var(--hc) + 6px)}
.habt thead th span{display:block;font-size:10px;letter-spacing:.02em}
.habt thead th b{display:block;font-weight:450;font-size:13px;color:var(--ink)}
.habt thead th.we span,.habt thead th.we b{color:var(--red)}
.habt th.td,.habt td.td{background:rgba(65,98,233,.08)}
.habt thead th.td{border-radius:14px 14px 0 0}
.habt thead th.td b{color:#fff;background:var(--blue);border-radius:50%;width:24px;height:24px;line-height:24px;margin:2px auto 0}
.habt .hn{position:sticky;left:0;z-index:2;background:#fdfbf6;text-align:left;min-width:230px;max-width:260px;padding:6px 10px 6px 16px;font-weight:350;border-right:1px solid #ece3d4}
.habt thead .hn{z-index:3;vertical-align:bottom;padding-bottom:10px}
.habt tbody tr+tr th,.habt tbody tr+tr td{border-top:1px dashed #ece3d4}
.hnb{all:unset;cursor:pointer;display:flex;align-items:flex-start;gap:8px;font-family:var(--text);font-weight:450;font-size:13.5px;line-height:1.3;color:var(--ink)}
.hnb:hover span{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.habt .hn small{display:block;color:#8a837a;font-size:11px;margin:2px 0 0}
.hfe{display:inline-block;font-style:normal;font-size:10.5px;background:#f5e6e4;color:var(--red);border-radius:8px;padding:1px 7px;margin:3px 0 0}
.hc{display:inline-flex;align-items:center;justify-content:center;width:var(--hc);height:var(--hc);margin:4px 2px;border:0;background:none;padding:0;cursor:pointer;transition:transform .12s}
.hc svg{width:100%;height:100%;overflow:visible}
.hc .r{fill:none;stroke:#4162e9;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hc .f{stroke:none}
.hc.on .f{fill:#909b15;opacity:.68}
.hc.miss .f{fill:#c98f70;opacity:.68}
.hc:not(:disabled):hover{transform:scale(1.12) rotate(-4deg)}
.hc:not(:disabled):active{transform:scale(.9)}
.hc:disabled{cursor:default}
.habt tr.hsec th{position:sticky;left:0;z-index:2;background:#fdfbf6;font:450 12px var(--text);color:var(--red);padding:14px 10px 4px 16px;text-align:left;letter-spacing:.02em}
.habt tr.hsec td{border-top:0!important}
.hnb.fixed{cursor:default}
.hhint{font-size:11px;color:#8a837a;line-height:1.4;display:block}
.habt td.hs{position:sticky;right:0;background:#fdfbf6;min-width:70px;padding:0 12px;border-left:1px solid #ece3d4;white-space:nowrap}
.habt thead th.hs{position:sticky;right:0;background:#fdfbf6;font-size:11px}
.hs b{font-size:16px;font-weight:450;color:var(--ink)}
.hs span{color:#8a837a;font-size:12px}
.hst{font-size:11.5px;color:var(--red);margin-top:2px}
.hlegend{display:flex;gap:18px;flex-wrap:wrap;margin:10px 4px 0;font-size:12px;color:#6b655c}
.hlegend span{display:inline-flex;align-items:center;gap:6px}
.hlegend .hc{--hc:22px;margin:0;cursor:default}
.hempty{background:#fdfbf6;border-radius:24px;padding:22px 24px;color:#6b655c;line-height:1.6}
.hpanel{background:#fdfbf6;border-radius:24px;padding:18px 22px;margin-top:16px;box-shadow:0 1px 2px rgba(70,50,20,.05),0 6px 18px rgba(70,50,20,.05)}
.hpanel .kicker{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;margin-bottom:10px}
.hadd{margin-top:16px}
.hform{display:flex;flex-direction:column;gap:12px}
.hname{font:350 15px var(--text);padding:11px 14px;border:1.5px solid #ddd4c4;border-radius:14px;background:#fff;color:var(--ink);max-width:520px}
.hname:focus{outline:none;border-color:var(--blue)}
.hrow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.hlab{font-size:12.5px;color:#6b655c;min-width:120px}
.hcol{width:28px;height:28px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px #ddd4c4;cursor:pointer;padding:0}
.hcol.on{box-shadow:0 0 0 2.5px var(--ink)}
.hday{font:450 12px var(--text);width:40px;height:32px;border-radius:10px;border:1.5px solid #ddd4c4;background:#fff;color:#6b655c;cursor:pointer}
.hday.on{background:var(--blue);border-color:var(--blue);color:#fff}
.hbtns{margin-top:4px}
.hchips{display:flex;flex-wrap:wrap;gap:8px}
.hpre{display:inline-flex;align-items:center;gap:8px;font:350 13px var(--text);color:var(--ink);background:#fff;border:1.5px solid #e3d9c8;border-radius:14px;padding:8px 12px;cursor:pointer;text-align:left}
.hpre:hover{border-color:var(--blue);color:var(--blue)}
.hpre small{color:#8a837a;font-size:11px}
.hpre::before{content:'＋';color:var(--blue);font-weight:450}
@media (max-width:760px){
  .hab{--hc:28px}
  .habt .hn{min-width:132px;max-width:150px;padding-left:12px}
  .hnb{font-size:12px}
  .habt .hn small,.hfe{margin-left:0}
  .habt td.hs{min-width:54px;padding:0 6px}
  .hmon{min-width:0;font-size:17px}
  .hpct{width:100%}
  .hbar{flex:1}
  .hlab{min-width:100%}
  .hday{width:38px}
}

.hideas{margin:0 0 18px}
.hih{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hit{all:unset;cursor:pointer;display:flex;align-items:baseline;gap:10px;flex:1}
.hit b{font:450 16px var(--text);color:var(--ink)}
.hit span{font-size:12.5px;color:var(--blue)}
.hil{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.hgl{font:450 12px var(--text);color:var(--red);margin-bottom:6px}
.hnew{margin-top:14px}
