/* HOP — Easy 8 check-in styles (e8test.js): "Nailed it" (default from v97) and the Easy 8 check-in page */
:root{ --e8t-gold:#c98a12; --e8t-gold-bg:#fff6df; --e8t-gold-line:#efd28f; }
:root[data-theme="dark"]{ --e8t-gold:#f0c35a; --e8t-gold-bg:rgba(240,195,90,.12); --e8t-gold-line:rgba(240,195,90,.38); }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){ --e8t-gold:#f0c35a; --e8t-gold-bg:rgba(240,195,90,.12); --e8t-gold-line:rgba(240,195,90,.38); } }

/* the switch at the top right of the check-in */
.checkin .sheet-head{ gap:10px; }
.checkin .sheet-head h2{ min-width:0; }
.e8t-switch{ flex:none; font:inherit; font-size:13.5px; font-weight:800; padding:7px 12px; border-radius:999px; cursor:pointer;
  color:var(--accent-600); background:var(--surface); border:1.5px solid var(--accent-400); white-space:nowrap; }
.e8t-switch.is-test{ color:var(--text); background:var(--surface-2); border-color:var(--border-strong); }

.e8t-banner{ display:flex; align-items:flex-start; gap:8px; margin:-4px 0 12px; padding:9px 12px; border-radius:12px;
  background:var(--e8t-gold-bg); border:1px solid var(--e8t-gold-line); font-size:14.5px; line-height:1.4; color:var(--text); }
.e8t-banner svg{ flex:none; margin-top:2px; color:var(--e8t-gold); }

/* the star beside a ticked habit's "?" */
.e8t-star{ flex:none; width:44px; height:44px; border-radius:50%; cursor:pointer; padding:0; display:inline-flex; align-items:center; justify-content:center;
  background:var(--surface); border:1.5px solid var(--e8t-gold-line); }
.e8t-star svg path{ fill:none; stroke:var(--e8t-gold); stroke-width:1.8; stroke-linejoin:round; }
.e8t-star.is-on{ background:var(--e8t-gold-bg); border-color:var(--e8t-gold); }
.e8t-star.is-on svg path{ fill:var(--e8t-gold); }
.e8t-star[hidden]{ display:none; }
.e8t-sum{ margin:0 8px 8px 44px; padding:10px 12px; border-radius:12px; background:var(--e8t-gold-bg); border:1px solid var(--e8t-gold-line); }
.e8t-sum-h{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--e8t-gold); margin-bottom:6px; }
.e8t-sum-h span{ display:inline-flex; align-items:center; gap:5px; }
.e8t-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; }
.e8t-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.e8t-tag{ display:inline-flex; align-items:center; gap:4px; font-size:14px; font-weight:600; padding:4px 10px; border-radius:999px; background:var(--surface); border:1px solid var(--e8t-gold-line); color:var(--text); }
.e8t-tag i{ font-style:normal; color:var(--text-muted); font-weight:700; }
.e8t-sum-note{ margin:6px 0 0; font-size:15px; line-height:1.4; color:var(--text); font-style:italic; }
.e8t-sum-note span{ font-style:normal; font-size:13px; color:var(--text-muted); margin-left:4px; }
/* under an unticked habit: what helped last time */
.e8t-hint{ display:flex; gap:6px; align-items:flex-start; margin:0 8px 8px 44px; font-size:14px; line-height:1.4; color:var(--text-muted); }
.e8t-hint svg{ flex:none; margin-top:2px; color:var(--e8t-gold); }

/* the "Nailed it! What helped?" window */
.e8t-win{ display:flex; flex-direction:column; }
.e8t-dance{ position:relative; isolation:isolate; overflow:hidden; display:grid; place-items:center; height:150px; margin:0 0 10px; border-radius:18px; cursor:pointer;
  background:radial-gradient(circle at 54% 42%,#f8fcfe 0,#e9f6fb 60%,#e1f1f7 100%); }
.e8t-dance img{ display:block; height:100%; width:auto; max-width:100%; object-fit:contain; transform-origin:50% 83%; filter:drop-shadow(0 7px 8px rgba(21,68,103,.12)); }
.e8t-sp{ position:absolute; z-index:2; color:#e9ad39; font-size:24px; line-height:1; opacity:0; pointer-events:none; text-shadow:0 2px 2px #fff; }
.e8t-sp1{ left:18%; top:14px; } .e8t-sp2{ right:18%; top:10px; }
.e8t-dance.is-dancing img{ animation:e8tDance 2.35s ease-in-out both; }
.e8t-dance.is-dancing .e8t-sp1{ animation:e8tNote 1.9s ease-in-out .1s both; }
.e8t-dance.is-dancing .e8t-sp2{ animation:e8tNote 2s ease-in-out .25s both; }
@keyframes e8tDance{
  0%,100%{transform:translate(0,0) rotate(0) scale(1)}
  14%{transform:translate(-3px,-10px) rotate(-3deg) scale(1.045)}
  27%{transform:translate(2px,0) rotate(2deg) scale(1)}
  42%{transform:translate(4px,-11px) rotate(3deg) scale(1.045)}
  55%{transform:translate(-2px,0) rotate(-2deg) scale(1)}
  69%{transform:translate(-3px,-9px) rotate(-3deg) scale(1.035)}
  83%{transform:translate(2px,-2px) rotate(2deg) scale(1.015)}
}
@keyframes e8tNote{0%,100%{opacity:0;transform:translateY(7px)}15%,70%{opacity:1;transform:translateY(-7px)}40%{transform:translateY(-14px)}}
@media(prefers-reduced-motion:reduce){ .e8t-dance.is-dancing img,.e8t-dance.is-dancing .e8t-sp{ animation:none !important; } }
.e8t-kicker{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; color:var(--e8t-gold); }
.e8t-title{ margin:2px 0 4px; font-size:23px; line-height:1.2; }
.e8t-trig{ margin:0 0 6px; font-size:15.5px; font-weight:600; line-height:1.4; color:var(--accent-600); }
.e8t-q{ margin:8px 0 8px; font-size:17px; font-weight:800; }
.e8t-q span{ font-weight:500; font-size:14.5px; color:var(--text-muted); }
.e8t-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.e8t-chip{ font:inherit; font-size:15.5px; font-weight:600; padding:9px 14px; border-radius:999px; cursor:pointer; text-align:left;
  color:var(--text); background:var(--surface); border:1.5px solid var(--border-strong); }
.e8t-chip.is-on{ background:var(--e8t-gold-bg); border-color:var(--e8t-gold); color:var(--text); box-shadow:inset 0 0 0 1px var(--e8t-gold); }
.e8t-mine{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:12px; }
.e8t-mine > span{ width:100%; font-size:12.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--text-muted); }
.e8t-mine-b{ font:inherit; font-size:14px; padding:5px 11px; border-radius:999px; cursor:pointer; color:var(--text); background:var(--surface-2); border:1px solid var(--border); }
.e8t-else{ display:block; margin:14px 0 6px; font-size:15px; font-weight:700; }
.e8t-note{ width:100%; box-sizing:border-box; font:inherit; font-size:16px; padding:10px 12px; border-radius:12px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); resize:vertical; }
.e8t-prev{ margin:8px 0 0; font-size:14px; color:var(--text-muted); line-height:1.4; }
.e8t-win [data-e8t-save]{ margin-top:14px; }
.e8t-skip{ display:block; width:100%; margin-top:6px; padding:10px; font:inherit; font-size:15px; font-weight:600; color:var(--text-muted); background:none; border:0; cursor:pointer; }
.e8t-foot{ margin:2px 0 0; text-align:center; font-size:13px; color:var(--text-faint, var(--text-muted)); }

/* the Test Easy 8 page */
.e8t-main{ gap:14px; padding-top:14px; }
.e8t-lead{ margin:0; font-size:16px; line-height:1.45; color:var(--text-muted); }
.e8t-card{ padding:14px; display:flex; flex-direction:column; gap:10px; }
.e8t-card-h{ font-size:16.5px; font-weight:800; }
.e8t-small{ margin:-4px 0 0; font-size:14px; color:var(--text-muted); line-height:1.4; }
.e8t-seg{ display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:14px; background:var(--surface-2); border:1px solid var(--border); }
.e8t-seg button{ font:inherit; font-size:15.5px; font-weight:700; padding:10px 8px; border-radius:10px; border:0; cursor:pointer; background:transparent; color:var(--text-muted); }
.e8t-seg button.is-on{ background:var(--refresh-action, var(--accent-500)); color:var(--refresh-action-ink, #fff); }
.e8t-row{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; font:inherit; color:var(--text); background:none; border:0; border-top:1px solid var(--border); padding:10px 0 0; cursor:pointer; }
.e8t-row-t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.e8t-row-t b{ font-size:16px; }
.e8t-row-t span{ font-size:14px; color:var(--text-muted); line-height:1.35; }
.e8t-tog{ flex:none; position:relative; width:46px; height:28px; border-radius:999px; background:var(--border-strong); transition:background .15s; }
.e8t-tog i{ position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .15s; }
.e8t-tog.is-on{ background:var(--refresh-action, var(--accent-500)); }
.e8t-tog.is-on i{ left:21px; }
.e8t-try{ display:flex; gap:8px; }
.e8t-try input{ flex:1; min-width:0; font:inherit; font-size:16px; padding:10px; border-radius:12px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); }
.e8t-try .btn{ flex:none; padding:0 14px; }
.e8t-help{ display:flex; flex-direction:column; gap:6px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.e8t-help:last-child{ border-bottom:0; padding-bottom:0; }
.e8t-help-h{ display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.e8t-help-h b{ font-size:16px; }
.e8t-help-h span{ font-size:13.5px; color:var(--text-muted); }
.e8t-empty{ margin:0; color:var(--text-muted); line-height:1.45; }
.e8t-det summary{ cursor:pointer; font-weight:700; color:var(--text-muted); padding:8px 2px; }
.e8t-ul{ list-style:none; margin:6px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.e8t-li{ display:flex; gap:10px; align-items:flex-start; padding:10px 12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); }
.e8t-li > div{ flex:1; min-width:0; }
.e8t-li b{ font-size:15.5px; }
.e8t-li-d{ display:block; font-size:14px; color:var(--text-muted); line-height:1.4; margin-top:2px; overflow-wrap:anywhere; }
.e8t-trig-tag{ font-size:11.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; padding:2px 7px; border-radius:999px; background:var(--e8t-gold-bg); color:var(--e8t-gold); border:1px solid var(--e8t-gold-line); vertical-align:2px; }
.e8t-del{ flex:none; width:30px; height:30px; border-radius:50%; border:1px solid var(--border); background:var(--surface-2); color:var(--text-muted); font-size:18px; line-height:1; cursor:pointer; padding:0; }
.e8t-rls{ display:flex; flex-direction:column; gap:8px; padding:4px 2px; }
.e8t-rl{ display:flex; flex-direction:column; gap:2px; }
.e8t-rl b{ font-size:15px; }
.e8t-rl span{ font-size:14px; color:var(--text-muted); line-height:1.4; }
.e8t-main .btn svg{ vertical-align:-3px; margin-right:4px; }
.e8t-what{ margin:0; font-size:15px; line-height:1.45; color:var(--text-muted); }
.e8t-what b{ color:var(--text); }
.e8t-testing .e8t-card{ margin-top:6px; }
/* v99: the star on a habit left unticked (its upside) is a little quieter until something is saved */
.e8t-star.is-up:not(.is-on){ opacity:.75; border-style:dashed; }
.e8t-sum.is-up{ background:var(--surface); }
.e8t-trig-tag.is-up{ background:var(--surface-2); color:var(--text-muted); border-color:var(--border-strong); }

/* v122: the win questions wait for 4 weeks of check-ins */
.e8t-row.is-locked{ cursor:default; opacity:.55; }
