/* Home ("Today"): per-person next action, three counts, and channels by stage. Tokens only, so light and dark both work. */
#view-home.hm-root *, #view-home.hm-root *::before, #view-home.hm-root *::after {box-sizing: border-box;}
#view-home.hm-root {background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; min-height: calc(100dvh - 66px);}
.hm-root .hm-wrap {max-width: 880px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 24px;}
.hm-root .hm-head {display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;}
.hm-root .hm-head h1 {margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.012em;}
.hm-root .hm-hello {color: var(--text2);}
.hm-root .hm-next {background: var(--text); color: var(--bg); border-radius: 10px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;}
.hm-root .hm-nexttext {display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 240px;}
.hm-root .hm-kicker {font-size: 12px; opacity: .7;}
.hm-root .hm-nexttitle {font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; overflow-wrap: anywhere;}
.hm-root .hm-nextsub {font-size: 13px; opacity: .8;}
.hm-root .hm-nextbtn {font: inherit; font-size: 14px; font-weight: 500; border: 0; background: var(--bg); color: var(--text); padding: 10px 18px; border-radius: 6px; cursor: pointer; white-space: nowrap;}
.hm-root .hm-nextbtn:hover {opacity: .9;}
.hm-root .hm-stats {display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: -8px;}
.hm-root .hm-stat {font: inherit; background: var(--surface); color: var(--text); border: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;}
.hm-root .hm-stat:hover {background: var(--surface2);}
.hm-root .hm-slabel {font-size: 13px; color: var(--text2);}
.hm-root .hm-svalue {font-size: 34px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2;}
.hm-root .hm-snote {font-size: 12px; color: var(--text3);}
.hm-root .hm-matrix {display: flex; flex-direction: column; gap: 10px; margin-top: 8px;}
.hm-root .hm-mhead {display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;}
.hm-root .hm-mhead h3 {margin: 0; font-size: 14px; font-weight: 600;}
.hm-root .hm-mnote {font-size: 12px; color: var(--text3);}
.hm-root .hm-grid {display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(6, minmax(84px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto;}
.hm-root .hm-grid > span {padding: 10px 8px; border-top: 1px solid var(--surface2); font-variant-numeric: tabular-nums;}
.hm-root .hm-gh {border-top: 0 !important; font-size: 12px; color: var(--text3); line-height: 1.25;}
.hm-root .hm-corner, .hm-root .hm-gch {padding-left: 14px !important;}
.hm-root .hm-gch {font-weight: 500; display: flex; gap: 6px; align-items: center; white-space: nowrap;}
.hm-root button.hm-gch {width: 100%; min-width: 0; font: inherit; font-weight: 500; color: var(--text); background: transparent; border: 0; border-top: 1px solid var(--surface2); text-align: left; cursor: pointer; padding: 10px 8px;}
.hm-root button.hm-gch:hover {background: var(--surface2);}
.hm-root button.hm-gch:focus-visible {outline: 2px solid var(--accent); outline-offset: -2px;}
.hm-root .hm-caret {display: inline-block; width: 10px; font-size: 10px; color: var(--text3);}
.hm-root .hm-gpf {padding-left: 38px !important; color: var(--text2); white-space: nowrap;}
.hm-root .hm-gc.hm-sub.hm-on {color: var(--text2);}
.hm-root .hm-gc.hm-na {color: var(--text3); font-size: 12px;}
.hm-root .hm-you {font-size: 11px; font-weight: 500; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 6px; line-height: 16px;}
.hm-root .hm-gc {color: var(--text3);}
.hm-root .hm-gc.hm-on {color: var(--text);}
.hm-root .hm-gc.hm-hot {font-weight: 600; color: var(--accent);}
.hm-root .hm-partial {margin: 0; font-size: 12px; color: var(--text3);}
.hm-root .hm-state {padding: 24px 0; color: var(--text2);}
.hm-root .hm-err {color: var(--red);}
.hm-root .hm-link {font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; margin-left: 8px; padding: 0; text-decoration: underline;}
.hm-root .hm-stat:focus-visible, .hm-root .hm-nextbtn:focus-visible, .hm-root .hm-link:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
@media (max-width: 640px) { .hm-root .hm-wrap {padding: 20px 16px 48px;} .hm-root .hm-nexttitle {font-size: 18px;} }
