/* HOP — "What got in the way?" windows (one per Easy 8 habit), the summary shown under an
   unticked habit in the check-in, and the My 8 Report page. HOP blue, light and dark via tokens. */
.why-win{ position:relative; padding:0 2px 2px; }
.why-top{ display:flex; align-items:center; justify-content:space-between; margin:-4px 0 4px; }
.why-brand{ height:34px; width:auto; display:block; }
.why-x{ width:44px; height:44px; margin-right:-8px; border:0; background:transparent; color:var(--text-muted); border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.why-x:active{ background:var(--surface-2); }
.why-title{ margin:2px 0 6px; font-size:27px; line-height:1.15; font-weight:800; color:var(--text); letter-spacing:-.01em; }
.why-sub{ margin:0 0 4px; font-size:17px; line-height:1.4; color:var(--accent-600); font-weight:600; }
.why-hint{ margin:0 0 14px; font-size:15px; color:var(--text-muted); }
.why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.why-opt{ font:inherit; text-align:left; display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:12px 12px 12px; min-height:92px; border-radius:16px; border:1.5px solid var(--border-strong); background:var(--surface); color:var(--text); cursor:pointer; position:relative; -webkit-tap-highlight-color:transparent; }
.why-opt:active{ background:var(--surface-2); }
.why-opt-ic{ width:40px; height:40px; border-radius:12px; background:var(--accent-100); color:var(--accent-500); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.why-opt-t{ font-size:15.5px; line-height:1.28; font-weight:600; }
.why-opt.is-on{ border-color:var(--accent-500); background:var(--accent-100); box-shadow:0 0 0 1px var(--accent-500) inset; }
.why-opt.is-on .why-opt-ic{ background:var(--accent-500); color:#fff; }
.why-opt.is-on .why-opt-t{ font-weight:800; color:var(--accent-700); }
.why-reflect{ margin:14px 0 0; padding:12px 14px; border-radius:16px; background:var(--surface-2); border:1px solid var(--border); border-left:4px solid var(--accent-400); }
.why-reflect[hidden]{ display:none; }
.why-r-head{ display:flex; align-items:center; gap:6px; color:var(--accent-600); font-size:14px; letter-spacing:.02em; margin-bottom:4px; }
.why-r-text{ margin:0 0 6px; font-size:16px; line-height:1.45; }
.why-r-meta{ margin:0 0 6px; font-size:14px; line-height:1.4; color:var(--text-muted); }
.why-r-help{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:4px; }
.why-r-help > span{ width:100%; font-size:12.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); }
.why-link{ font:inherit; font-size:14px; font-weight:600; padding:7px 12px; min-height:36px; border-radius:999px; border:1px solid var(--accent-400); background:var(--surface); color:var(--accent-600); cursor:pointer; }
.why-link:active{ background:var(--accent-100); }
.why-else{ display:flex; align-items:baseline; justify-content:space-between; margin:18px 0 6px; }
.why-else label{ margin:0; font-size:16px; font-weight:700; color:var(--text); }
.why-else-link{ font:inherit; font-size:15px; font-weight:700; color:var(--accent-500); background:none; border:0; padding:6px 0 6px 10px; cursor:pointer; }
.why-note{ width:100%; box-sizing:border-box; font:inherit; font-size:16px; padding:12px 14px; border-radius:14px; border:1.5px solid var(--border-strong); background:var(--surface); color:var(--text); resize:none; min-height:64px; }
.why-note:focus{ outline:none; border-color:var(--accent-500); box-shadow:0 0 0 3px var(--accent-100); }
.why-small{ margin:6px 2px 14px; font-size:13.5px; color:var(--text-faint); }
.why-save{ display:flex; align-items:center; justify-content:center; gap:8px; }
.why-skip{ display:block; margin:10px auto 2px; font:inherit; font-size:16px; color:var(--text-muted); background:none; border:0; padding:10px 18px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }

/* summary shown under an unticked habit in the check-in */
.ci-sum{ margin:0 8px 8px 44px; padding:10px 12px; border-radius:12px; background:var(--accent-100); border:1px solid var(--border); }
.ci-sum[hidden]{ display:none; }
.ci-sum-h{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--accent-600); margin-bottom:6px; }
.ci-sum-edit{ font:inherit; font-size:14px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--accent-500); background:none; border:0; padding:4px 0 4px 8px; cursor:pointer; }
.ci-sum-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.ci-sum-tag{ display:inline-flex; align-items:center; gap:5px; font-size:14px; font-weight:600; padding:4px 10px 4px 7px; border-radius:999px; background:var(--surface); border:1px solid var(--accent-400); color:var(--accent-700); }
.ci-sum-tag .why-ic{ color:var(--accent-500); }
.ci-sum-note{ margin:6px 0 0; font-size:15px; line-height:1.4; color:var(--text); font-style:italic; }
.ci-sum-none{ font-size:14px; color:var(--text-muted); }
.ci-why-open{ display:block; margin:0 8px 8px 44px; font:inherit; font-size:15px; font-weight:600; color:var(--accent-500); background:none; border:1px dashed var(--accent-400); border-radius:12px; padding:9px 12px; width:calc(100% - 52px); text-align:left; cursor:pointer; }

/* My 8 Report */
.m8-lead{ margin:0 0 12px; font-size:16px; line-height:1.45; color:var(--text-muted); }
.m8-range{ display:flex; gap:8px; margin-bottom:14px; }
.m8-range button{ flex:1; font:inherit; font-size:15px; font-weight:700; padding:10px 8px; min-height:44px; border-radius:12px; border:1.5px solid var(--border-strong); background:var(--surface); color:var(--text); cursor:pointer; }
.m8-range button.is-on{ border-color:var(--accent-500); background:var(--accent-100); color:var(--accent-700); }
.m8-hero{ border-radius:20px; padding:16px; color:#fff; background:linear-gradient(135deg,#4ba6de,#0b64a0 62%,#084f82); margin-bottom:14px; }
.m8-hero h2{ margin:0 0 4px; font-size:22px; color:#fff; }
.m8-hero p{ margin:0; font-size:15.5px; line-height:1.45; opacity:.95; }
.m8-top{ display:grid; gap:10px; margin-bottom:14px; }
.m8-card{ border-radius:16px; background:var(--surface); border:1px solid var(--border); padding:14px; box-shadow:var(--shadow-sm, none); }
.m8-card h3{ margin:0 0 8px; font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-600); }
.m8-bar{ display:grid; grid-template-columns:34px 1fr 30px; align-items:center; gap:10px; padding:6px 0; font-size:15.5px; }
.m8-bar .m8-ic{ width:34px; height:34px; border-radius:10px; background:var(--accent-100); color:var(--accent-500); display:flex; align-items:center; justify-content:center; }
.m8-bar-t{ display:block; font-weight:700; }
.m8-bar-s{ display:block; font-size:13px; color:var(--text-muted); font-weight:500; }
.m8-bar-n{ text-align:right; font-weight:800; color:var(--accent-700); font-variant-numeric:tabular-nums; }
.m8-track{ display:block; height:7px; border-radius:99px; background:var(--surface-3); margin-top:5px; overflow:hidden; }
.m8-track i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#4ba6de,#0b64a0); }
.m8-habit{ margin-bottom:10px; }
.m8-habit-h{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.m8-habit-t{ font-size:17px; font-weight:800; }
.m8-pill{ font-size:13px; font-weight:700; padding:3px 10px; border-radius:99px; background:var(--accent-100); color:var(--accent-700); white-space:nowrap; }
.m8-habit p{ margin:6px 0 0; font-size:15px; line-height:1.45; color:var(--text); }
.m8-habit p.m8-mut{ color:var(--text-muted); font-size:14px; }
.m8-quote{ margin:8px 0 0; padding:6px 10px; border-left:3px solid var(--accent-400); font-size:14.5px; font-style:italic; color:var(--text-muted); }
.m8-help{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.m8-foot{ margin:6px 2px 24px; font-size:13.5px; line-height:1.45; color:var(--text-faint); }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .why-brand{ background:#fff; border-radius:10px; padding:1px 8px; } }
:root[data-theme="dark"] .why-brand{ background:#fff; border-radius:10px; padding:1px 8px; }

.m8-then{ padding:8px 0; border-top:1px solid var(--border); }
.m8-then:first-of-type{ border-top:0; }
.m8-then-top{ display:flex; justify-content:space-between; gap:8px; margin-bottom:4px; font-size:15.5px; }
.m8-then-t{ font-weight:700; }
.m8-then-v{ font-weight:800; font-variant-numeric:tabular-nums; color:var(--text-muted); white-space:nowrap; }
.m8-then-v.is-up{ color:var(--accent-700); }
.m8-then-v.is-dn{ color:var(--warning); }
.m8-then .m8-track{ margin-top:3px; height:6px; }
.m8-then .m8-ghost i{ background:var(--border-strong); }

/* ---- v56: marker, one small step, "What was it protecting?", chain picture, Today step card ---- */
.why-mark{ margin-left:auto; font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; padding:3px 9px; border-radius:999px; border:1px solid var(--border-strong, var(--border)); color:var(--text-muted); background:var(--surface); white-space:nowrap; }
.why-mark.is-c{ color:var(--accent-700); border-color:var(--accent-400); background:var(--accent-100); }
.why-try{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:10px; padding:10px 12px; border-radius:14px; background:var(--surface); border:1px dashed var(--accent-400); }
.why-try.is-on{ border-style:solid; background:var(--accent-100); }
.why-try-t{ flex:1 1 180px; font-size:15px; line-height:1.38; color:var(--text); display:block; }
.why-try-t b{ display:block; font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); margin-bottom:2px; }
.why-try.is-on .why-try-t b{ color:var(--accent-700); }
.why-try.is-on .why-ic{ vertical-align:-3px; margin-right:4px; color:var(--accent-600); }
.why-try-btn, .why-try-undo{ font:inherit; font-size:14.5px; font-weight:700; min-height:40px; padding:8px 14px; border-radius:999px; cursor:pointer; }
.why-try-btn{ border:1.5px solid var(--accent-500); background:var(--surface); color:var(--accent-700); }
.why-try-btn:active{ background:var(--accent-100); }
.why-try-undo{ border:0; background:none; color:var(--text-muted); text-decoration:underline; }
.why-prot{ margin-top:12px; padding-top:10px; border-top:1px solid var(--border); }
.why-prot-q{ font-size:15px; font-weight:700; color:var(--text); margin-bottom:8px; }
.why-prot-q span{ display:block; font-size:13px; font-weight:500; color:var(--text-muted); margin-top:1px; }
.why-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.why-chip{ font:inherit; font-size:14px; font-weight:600; min-height:40px; padding:7px 11px; border-radius:999px; border:1px solid var(--border-strong, var(--border)); background:var(--surface); color:var(--text); cursor:pointer; }
.why-chip.is-on{ border-color:var(--accent-500); background:var(--accent-100); color:var(--accent-700); box-shadow:0 0 0 1px var(--accent-500) inset; }
.why-prot-r{ margin:10px 0 0; font-size:15.5px; line-height:1.45; }
.why-prot-off{ display:block; margin:8px 0 0; padding:6px 0; font:inherit; font-size:13.5px; color:var(--text-muted); background:none; border:0; text-decoration:underline; cursor:pointer; }
/* chain picture */
.m8-chain{ display:flex; flex-direction:column; gap:10px; margin:0 0 6px; }
.m8-link{ padding:10px 12px; border-radius:14px; background:var(--surface-2, var(--surface)); border:1px solid var(--border); }
.m8-link-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.m8-link-chip{ font-size:14.5px; font-weight:700; padding:5px 11px; border-radius:999px; background:var(--surface); border:1px solid var(--accent-400); color:var(--accent-700); }
.m8-link-arrow{ color:var(--text-muted); font-weight:700; }
.m8-link-s{ margin:6px 0 0; font-size:14px; line-height:1.4; color:var(--text-muted); }
/* the one-day step on Today */
.try-card{ display:flex; flex-direction:column; gap:8px; padding:12px 14px; margin:0 0 12px; border-radius:16px; background:var(--accent-100); border:1px solid var(--accent-400); }
.try-card-k{ font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-700); }
.try-card-t{ font-size:16.5px; line-height:1.4; font-weight:600; color:var(--text); }
.try-card-b{ display:flex; gap:8px; flex-wrap:wrap; }
.try-card-b button{ font:inherit; font-size:15px; font-weight:700; min-height:42px; padding:8px 16px; border-radius:999px; cursor:pointer; }
.try-card-b .is-yes{ border:0; background:var(--accent-500); color:#fff; }
.try-card-b .is-no{ border:1px solid var(--accent-400); background:var(--surface); color:var(--accent-700); }
/* the setting sheet */
.w2-opt{ display:flex; gap:12px; align-items:flex-start; width:100%; text-align:left; font:inherit; padding:12px; margin:0 0 8px; border-radius:14px; border:1.5px solid var(--border); background:var(--surface); color:var(--text); cursor:pointer; }
.w2-opt.is-on{ border-color:var(--accent-500); background:var(--accent-100); }
.w2-opt b{ display:block; font-size:16px; }
.w2-opt span{ display:block; font-size:14px; color:var(--text-muted); margin-top:2px; line-height:1.38; }

/* ---- v57: HOP's voice (unhinged) ---- */
.why-u-story{ font-size:16px; }
.why-u-use{ margin:8px 0 6px; padding:10px 12px; border-radius:12px; background:var(--surface); border:1px solid var(--accent-400); font-size:15px; line-height:1.4; }
.why-u-use b{ display:block; font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--accent-700); margin-bottom:2px; }
.why-u-use span{ display:block; color:var(--text); }

/* How close did you get? 0 to 10 (why.js LEVELS). Red to green, higher is better. */
.why-lv{ margin:2px 0 14px; padding:12px 12px 10px; border-radius:16px; background:var(--surface-2); border:1px solid var(--border); }
.why-lv-q{ font-weight:800; font-size:16px; color:var(--text); margin-bottom:8px; }
.why-lv-q span{ font-weight:600; font-size:12.5px; color:var(--text-faint); margin-left:4px; }
.why-lv-bar{ display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:3px; }
.why-lv-n{ --h:calc((9 - var(--i)) * 15); appearance:none; font:inherit; font-weight:800; font-size:14px; height:38px; padding:0; border-radius:8px; cursor:pointer;
  border:1.5px solid var(--border-strong); background:var(--surface); color:var(--text-muted); }
.why-lv-n.is-fill{ background:hsl(var(--h) 72% 46%); border-color:transparent; color:#fff; }
.why-lv-n.is-on{ box-shadow:0 0 0 3px var(--surface-2),0 0 0 5px hsl(var(--h) 72% 46%); transform:translateY(-1px); }
.why-lv-n:focus-visible{ outline:3px solid var(--accent-500); outline-offset:2px; }
.why-lv-ends{ display:flex; justify-content:space-between; gap:10px; margin-top:6px; font-size:12px; line-height:1.25; color:var(--text-muted); }
.why-lv-ends span:last-child{ text-align:right; }
.why-lv-say{ margin:8px 0 0; font-size:14.5px; color:var(--text); min-height:20px; }
.why-lv-hint{ color:var(--text-faint); font-size:13.5px; }
.why-lv-ten{ display:block; margin-top:3px; font-size:13px; font-weight:700; color:#1d8f55; }
.why-mynotes{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 8px; }
.why-mynotes > span{ font-size:12.5px; font-weight:700; color:var(--text-faint); margin-right:2px; }
.why-mynotes-n{ appearance:none; font:inherit; font-size:13.5px; font-weight:600; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  padding:6px 11px; border-radius:999px; border:1.5px solid var(--border-strong); background:var(--surface); color:var(--text); cursor:pointer; }
.why-mynotes-n:active{ background:var(--surface-2); }
/* v81: the 0-10 under an unticked habit in the check-in */
.ci-sum-lv{ font-size:14px; color:var(--text-muted); margin:2px 0 6px; }
.ci-sum-lv b{ color:var(--text); font-weight:800; }
