/* Стили раздела «home». Все классы — с приставкой, см. docs/MODULES.md */
:root{--hm-dark:#16181D;--hm-dark-ink:#FFFFFF;--hm-dark-sub:#C9CCD4;--hm-dark-cap:#B9C0FF;--hm-dark-line:#4A4F5C;--hm-dark-btn:#FFFFFF;--hm-dark-btn-ink:#16181D;--hm-ring:#E3E5EB;--hm-ok:#1E8553;--hm-warm:#8A4B08;--hm-warm-soft:#FBF1E3}
:root[data-theme=dark]{--hm-dark:#262B4A;--hm-dark-ink:#F1F2F5;--hm-dark-sub:#C9CCD4;--hm-dark-cap:#C3C9FF;--hm-dark-line:#59608F;--hm-dark-btn:#F1F2F5;--hm-dark-btn-ink:#16181D;--hm-ring:#2A2E38;--hm-ok:#2FA36B;--hm-warm:#E8B878;--hm-warm-soft:#33291B}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--hm-dark:#262B4A;--hm-dark-ink:#F1F2F5;--hm-dark-sub:#C9CCD4;--hm-dark-cap:#C3C9FF;--hm-dark-line:#59608F;--hm-dark-btn:#F1F2F5;--hm-dark-btn-ink:#16181D;--hm-ring:#2A2E38;--hm-ok:#2FA36B;--hm-warm:#E8B878;--hm-warm-soft:#33291B}}

.hm{max-width:1080px}
.hm-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0 4px}
.hm-hello{min-width:0}
.hm-hello h1{font-size:28px;line-height:34px;overflow-wrap:anywhere}
.hm-wx{min-height:36px;margin-top:2px;padding:0;font-size:14px;font-weight:var(--wm);color:var(--ink2);text-align:left;display:flex;align-items:center}
.hm-side{display:flex;align-items:center;gap:8px;flex:none}
.hm-gear{width:44px;height:44px;border-radius:22px;background:var(--card);color:var(--ink);display:flex;align-items:center;justify-content:center}
.hm-gear svg{width:20px;height:20px}
.hm-ring{width:64px;height:64px;position:relative;flex:none;border-radius:32px}
.hm-ring svg{display:block}
.hm-r0,.hm-r1{fill:none;stroke-width:7}.hm-r0{stroke:var(--hm-ring)}.hm-r1{stroke:var(--accent);stroke-linecap:round;transition:stroke-dasharray .3s ease}
.hm-rn{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.hm-rn b{font-size:17px;font-weight:700;line-height:18px}.hm-rn span{font-size:10.5px;font-weight:var(--wm);color:var(--mute);line-height:12px}

.hm-over{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--card);border-radius:16px;padding:6px 8px 6px 16px;font-size:14.5px;font-weight:var(--wm);min-height:48px}
.hm-over b{font-weight:700}

.hm-cols{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.hm-col{display:contents}
.hm-card{background:var(--card);border-radius:20px;padding:14px 16px;min-width:0}
.hm-ch{display:flex;align-items:center;gap:8px;min-height:24px}
.hm-ch .cap{flex:1;min-width:0;overflow-wrap:anywhere}
.hm-chr{font-size:12.5px;color:var(--mute);font-weight:var(--wm);white-space:nowrap}
.hm-x{width:36px;height:36px;margin:-8px -10px -4px -2px;flex:none;display:flex;align-items:center;justify-content:center;color:var(--mute);border-radius:18px}
.hm-x svg{width:16px;height:16px}
.hm-p{margin:8px 0 0;font-size:15.5px;line-height:22px;overflow-wrap:anywhere}
.hm-pre{white-space:pre-wrap}
.hm-note{margin:6px 0 0;font-size:13.5px;line-height:19px;color:var(--mute);overflow-wrap:anywhere}
.hm-q{margin:8px 0 0;font-size:17px;line-height:25px;font-weight:var(--wm);overflow-wrap:anywhere}
.hm-row{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.hm-r0{margin-top:8px}
.hm-src{font-size:12.5px;line-height:17px;color:var(--mute);min-width:0;flex:1 1 120px;overflow-wrap:anywhere}
.hm-p+.hm-src{display:block;margin-top:4px}
.hm-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.hm-acts3{margin-left:0;justify-content:flex-start}
.hm-ok{height:36px;display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:var(--wm);color:var(--ink2)}
.hm-ok svg{width:16px;height:16px;stroke:var(--hm-ok);stroke-width:2.6}
.hm-otd .cap{color:var(--hm-warm)}

/* главное дело — тёмная карточка */
.hm-dark{background:var(--hm-dark);color:var(--hm-dark-ink);border-radius:22px;padding:16px 16px 14px}
.hm-dark .cap{color:var(--hm-dark-cap);font-size:11.5px;letter-spacing:.08em}
.hm-mt{display:block;width:100%;text-align:left;margin-top:6px;font-size:20px;line-height:26px;font-weight:700;color:var(--hm-dark-ink);overflow-wrap:anywhere;min-height:36px}
.hm-mm{margin-top:2px;font-size:13px;color:var(--hm-dark-sub);overflow-wrap:anywhere}
.hm-mq{margin-top:6px;font-size:17px;line-height:23px;font-weight:700}
.hm-mb{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.hm-mb>button{flex:1 1 auto;justify-content:center}
.hm-b1,.hm-b2{min-height:44px;border-radius:14px;font-size:14.5px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;max-width:100%}
.hm-b1{background:var(--hm-dark-btn);color:var(--hm-dark-btn-ink);font-weight:700}
.hm-b2{border:1.5px solid var(--hm-dark-line);color:var(--hm-dark-ink);font-weight:var(--wm)}
.hm-b1 svg,.hm-b2 svg{width:18px;height:18px}
.hm-cand{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.hm-cand .hm-b2{width:100%;text-align:left;padding:8px 14px}
.hm-cand .hm-b2 b{flex:none;font-weight:700;font-variant-numeric:tabular-nums}
.hm-cand .hm-b2 span{min-width:0;overflow-wrap:anywhere}
.hm-md{margin-top:8px;display:flex;align-items:center;gap:10px;font-size:17px;line-height:23px;font-weight:700}
.hm-md>svg{width:22px;height:22px;stroke-width:2.6;color:var(--hm-dark-cap)}
.hm-md span{min-width:0;overflow-wrap:anywhere}
.hm-md small{display:block;font-size:13px;font-weight:400;color:var(--hm-dark-sub)}
.hm-tmr{margin-top:12px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--hm-dark-line);padding-top:12px}
.hm-ch+.hm-tmr{border-top:none;padding-top:0;margin-top:8px}
.hm-tmr>svg{color:var(--hm-dark-cap)}
.hm-tt{flex:1;min-width:0;display:flex;flex-direction:column}
.hm-tt b{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.hm-tt span{font-size:13px;color:var(--hm-dark-sub);overflow-wrap:anywhere}

/* дальше */
.hm-next{padding:0}
.hm-tap{display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;padding:14px 16px;border-radius:20px;min-height:44px}
.hm-nrow{display:flex;align-items:center;gap:12px;min-width:0}
.hm-nt{font-size:22px;line-height:26px;font-weight:700;font-variant-numeric:tabular-nums;flex:none}
.hm-nx{min-width:0;display:flex;flex-direction:column}
.hm-nn{font-size:14.5px;font-weight:var(--wm);overflow-wrap:anywhere}
.hm-ns{font-size:13px;color:var(--mute)}

/* привычки */
.hm-habs{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}
.hm-hab{min-height:44px;max-width:100%;border-radius:22px;background:var(--soft);padding:0 14px 0 9px;display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:var(--wm);text-align:left;color:var(--ink)}
.hm-hab.on{background:var(--accent-soft);color:var(--accent-ink)}
.hm-hc{width:26px;height:26px;border-radius:13px;border:2px solid #B9BDC8;flex:none;display:flex;align-items:center;justify-content:center}
.hm-hab.on .hm-hc{border:none;background:var(--hm-ok)}
.hm-hc svg{width:14px;height:14px;stroke:#fff;stroke-width:3}
.hm-hn{min-width:0;overflow-wrap:anywhere;padding:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hm-hab em{font-style:normal;font-size:12px;font-weight:700;color:var(--mute);flex:none}
.hm-hab.on em{color:var(--accent-ink)}
.hm-hmore{padding-left:14px}
.hm-wk{margin-top:12px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;max-width:340px}
.hm-dot{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:var(--wm);color:var(--mute)}
.hm-dot i{width:14px;height:14px;border-radius:7px;border:2px solid var(--hm-ring);box-sizing:border-box}
.hm-da i{border:none;background:var(--hm-ok)}
.hm-dp i{border-color:var(--hm-ok);background:linear-gradient(90deg,var(--hm-ok) 50%,transparent 50%)}
.hm-dn i{border-style:dotted}
.hm-df i{opacity:.55}
.hm-dt{color:var(--ink);font-weight:700}

/* продолжить, люди, подсказки */
.hm-crow,.hm-per,.hm-tip{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:52px;padding:8px 0;border-bottom:1px solid var(--soft)}
.hm-crow:last-child,.hm-per:last-child,.hm-tip:last-child{border-bottom:none;padding-bottom:0}
.hm-ch+.hm-crow,.hm-ch+.hm-per{margin-top:2px}
.hm-cov{width:44px;height:58px;border-radius:8px;background:#2E4A3F;color:#F1E9D2;flex:none;display:flex;align-items:center;justify-content:center}
.hm-cov2{background:#3A3560}
.hm-cx,.hm-px{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hm-cx b,.hm-px b{font-size:15.5px;font-weight:700;overflow-wrap:anywhere}
.hm-cx>span,.hm-px>span{font-size:13px;line-height:18px;color:var(--mute);overflow-wrap:anywhere}
.hm-px .hm-pn{color:var(--ink2);font-size:13.5px}
.hm-bar{display:block;margin-top:6px;height:5px;border-radius:3px;background:var(--hm-ring)}
.hm-bar i{display:block;height:5px;border-radius:3px;background:var(--accent);max-width:100%}
.hm-arr{width:44px;height:44px;border-radius:22px;background:var(--accent-soft);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;flex:none}
.hm-arr svg{width:20px;height:20px;stroke-width:2.4}

/* итоги */
.hm-stats{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.hm-st{flex:1 1 86px;min-width:0;background:var(--soft);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.hm-st b{font-size:18px;line-height:22px;font-weight:700;overflow-wrap:anywhere}
.hm-st span{font-size:12.5px;color:var(--mute)}
.hm-sm{margin-top:10px;font-size:14px;line-height:20px;color:var(--ink2);overflow-wrap:anywhere}
.hm-wrote{margin-top:12px}
.hm-good{display:flex;flex-direction:column;gap:6px;margin-top:12px;font-size:14.5px;font-weight:700}
.hm-good textarea{border-radius:12px;border:1.5px solid var(--line);background:var(--card);padding:10px 12px;font-size:16px;font-weight:400;line-height:22px;min-height:66px;resize:vertical;width:100%;color:var(--ink)}

/* конец ленты */
.hm-end{margin-top:22px;padding:18px 16px 4px;text-align:center;border-top:1px solid var(--line)}
.hm-end b{display:block;font-size:17px;font-weight:700}
.hm-end p{margin:6px auto 0;max-width:420px;font-size:14.5px;line-height:20px;color:var(--ink2);overflow-wrap:anywhere}
.hm-end small{display:block;margin-top:6px;font-size:12.5px;color:var(--mute)}
.hm-eb{margin-top:12px;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.hm-end .mini.gray,.hm-back .mini.gray,.hm-over .mini.gray{background:var(--card)}
.hm-over .mini.gray{background:var(--soft)}
.hm-back{margin-top:10px;display:flex;justify-content:center}

/* окна раздела */
.hm-full{margin:14px 0 0;font-size:16.5px;line-height:24px;overflow-wrap:anywhere}
.hm-art{margin-top:14px;background:var(--bg);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.hm-art b{font-size:15.5px;font-weight:700;overflow-wrap:anywhere}
.hm-art small{font-size:13px;color:var(--mute);overflow-wrap:anywhere}
.hm-art p{margin:6px 0 0;font-size:14.5px;line-height:21px;overflow-wrap:anywhere}
.hm-abig{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;padding:0 16px}
.hm-links{margin-top:6px;display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
.hm-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:var(--wm);color:var(--accent-t)}
.hm-sc{margin-top:18px;margin-bottom:2px}
.hm-h0{margin-top:8px}
.hm-find{display:flex;align-items:flex-end;gap:8px}
.hm-find .f{flex:1;min-width:0}
.hm-find .mini{height:48px;border-radius:12px;padding:0 16px}
.hm-geo{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;text-align:left;min-height:52px;padding:7px 12px;border-radius:12px;background:var(--soft);margin-top:8px}
.hm-geo b{font-weight:700;overflow-wrap:anywhere}.hm-geo span{font-size:13px;color:var(--mute);overflow-wrap:anywhere}
.hm-srow{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--soft)}
.hm-srow:last-child{border-bottom:none}
.hm-srow span{min-width:0;display:flex;flex-direction:column;gap:1px}
.hm-srow b{font-size:14.5px;font-weight:var(--wm);overflow-wrap:anywhere}
.hm-srow small{font-size:13px;line-height:18px;color:var(--mute);overflow-wrap:anywhere}
.hm-led{width:10px;height:10px;border-radius:5px;background:var(--hm-ring);flex:none;margin-top:5px;border:2px solid var(--hm-ring);box-sizing:border-box}
.hm-led.ok{background:var(--hm-ok);border-color:var(--hm-ok)}
.hm-led.bad{background:transparent;border-color:var(--mute)}
#hm_set .set .opt{flex:none;min-width:112px}
#hm_set .set>span{min-width:0;overflow-wrap:anywhere}

/* отклик на нажатие и мягкое появление */
.hm button,.hm-geo,.hm-abig{transition:transform .08s ease}
.hm button:active,.hm-geo:active,.hm-abig:active{transform:scale(.98)}
.hm-new{animation:hm-in .2s ease-out both;animation-delay:calc(var(--i,0)*28ms)}
@keyframes hm-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hm-new{animation:none}.hm button,.hm-geo,.hm-abig,.hm-r1{transition:none}.hm button:active,.hm-geo:active,.hm-abig:active{transform:none}}

@media (min-width:700px){.hm-mb .hm-b1,.hm-mb .hm-b2{padding:0 18px}.hm-cand{flex-direction:row;flex-wrap:wrap}.hm-cand .hm-b2{width:auto;flex:1 1 200px}}
@media (min-width:940px){.hm-hello h1{font-size:30px;line-height:36px}.hm{margin:0 auto}}
@media (min-width:1200px){
  .hm-two .hm-cols{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:start}
  .hm-two .hm-col{display:flex;flex-direction:column;gap:12px;min-width:0}
  .hm:not(.hm-two){max-width:720px}
}
