/* Navbar streak button + week popover. Tokens only. */
.stk-wrap { position: relative; }
.stk-btn { cursor: pointer; font: inherit; color: var(--text); }
.stk-btn .nav-icon { color: #FB923C; }
.stk-btn.is-cold .nav-icon { color: var(--text-soft); }
.stk-btn:hover, .stk-btn[aria-expanded="true"] { border-color: color-mix(in srgb, #FB923C 55%, var(--line)); }
.stk-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1700; width: min(320px, 92vw); padding: 1rem; display: grid; gap: 0.85rem;
  border-radius: 18px; border: 1px solid color-mix(in srgb, #FB923C 35%, var(--line)); background: var(--surface-strong, var(--surface)); color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.stk-pop[hidden] { display: none; }
.stk-pop::before { content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--surface-strong, var(--surface)); border-left: 1px solid color-mix(in srgb, #FB923C 35%, var(--line)); border-top: 1px solid color-mix(in srgb, #FB923C 35%, var(--line)); }
.stk-head { display: flex; align-items: center; gap: 0.75rem; }
.stk-flame { width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center; color: #FB923C; background: color-mix(in srgb, #FB923C 15%, transparent); }
.stk-flame svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stk-pop.is-cold .stk-flame { color: var(--text-soft); background: color-mix(in srgb, var(--text) 8%, transparent); }
.stk-head div { display: grid; }
.stk-head strong { font-size: 1.15rem; }
.stk-head small { color: var(--text-soft); font-size: 0.8rem; }
.stk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
.stk-day { display: grid; justify-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.stk-day i { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.85rem; font-weight: 900;
  border: 2px solid var(--line); color: var(--text-soft); }
.stk-day.done i { border-color: transparent; background: linear-gradient(135deg, #FB923C, #F97316); color: #1a0d03; box-shadow: 0 6px 16px -8px #FB923C; }
.stk-day.missed i { border-color: color-mix(in srgb, #F87171 55%, var(--line)); color: #F87171; }
.stk-day.today i { border-style: dashed; border-color: #FB923C; color: #FB923C; }
.stk-day.future i { opacity: 0.45; }
.stk-day.is-today { color: var(--text); }
.stk-msg { margin: 0; font-size: 0.84rem; color: var(--text-soft); line-height: 1.45; }
.stk-msg b { color: var(--text); }
.stk-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-soft); }
.stk-foot a { font-weight: 700; }
@media (max-width: 560px) { .stk-pop { position: fixed; top: 64px; right: 8px; left: 8px; width: auto; } .stk-pop::before { display: none; } }
/* phones: the other pills are hidden there, but the streak stays visible */
@media (max-width: 760px) {
  .topbar-actions .stk-btn.topnav-pill { display: inline-flex; padding-left: 0.55rem; padding-right: 0.6rem; }
}
