/* Daily Tasks: checklist, activity bar with five chests, weekly chest (client/panels-tasks.js) */
.tk-root .pn-title { margin-bottom: 10px; }
.tk-help { width: 36px; height: 36px; padding: 0 !important; border-radius: 50%; border: 2px solid var(--pn-gold2); background: rgba(0,0,0,.35); color: var(--pn-gold); font: 900 17px/1 system-ui !important; }
.tk-tabs button { flex: 1 1 0; min-height: 44px; font-size: 14px; font-weight: 700; }
.tk-tabs .pn-bdg { top: -5px; right: -2px; }
.tk-body { display: grid; gap: 10px; }

/* top banner: reset countdown, points, bar with the five chests */
.tk-banner { padding: 12px 12px 10px; border-radius: 14px; border: 1px solid var(--pn-gold2);
  background: radial-gradient(120% 140% at 100% 0%, rgba(240,180,60,.25), transparent 55%), linear-gradient(135deg, #33401f, #17201a 75%);
  box-shadow: inset 0 1px 0 rgba(255,220,140,.15), 0 4px 12px rgba(0,0,0,.35); }
.tk-banner .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.tk-banner small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tk-banner .cd b { display: block; font: 900 20px/1.15 ui-monospace, Menlo, Consolas, monospace; color: #fff; }
.tk-banner .cd i { font-style: normal; font-size: 11px; color: var(--muted); }
.tk-banner .pts { text-align: right; }
.tk-banner .pts b { font: 900 30px/1 system-ui; color: var(--c-amber-hi); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.tk-banner .pts b span { font-size: 15px; color: #d9c48c; }
.tk-track { position: relative; height: 74px; margin: 6px 20px 0 6px; }
.tk-bar { position: absolute; left: 0; right: 0; bottom: 22px; height: 12px; border-radius: 6px; background: var(--c-ink); box-shadow: inset 0 0 0 1px #4a5a3c; overflow: hidden; }
.tk-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--c-amber-lo), var(--c-amber-hi)); transition: width .4s; }
.tk-chest { position: absolute; bottom: 0; width: 44px; margin-left: -22px; padding: 0; border: 0; background: none; color: #fff; display: grid; justify-items: center; gap: 12px; }
.tk-chest .ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: linear-gradient(#3a4a3e, #222d26); box-shadow: 0 0 0 2px #56695a, 0 3px 0 #0d130f; filter: grayscale(.6) brightness(.85); }
.tk-chest b { min-width: 30px; padding: 1px 5px; border-radius: 999px; background: var(--c-ink); border: 1px solid #4a5a3c; font: 800 11px/1.3 system-ui; color: #cfd8c9; }
.tk-chest.ready .ic { filter: none; background: linear-gradient(var(--c-amber-hi), #e3a03a); box-shadow: 0 0 0 2px #fff3c8, 0 3px 0 #8a5a10, 0 0 14px rgba(255,215,106,.7); animation: tk-bob 1.2s ease-in-out var(--ph, 0s) infinite; }
.tk-chest.ready b { background: var(--pn-gold); border-color: #fff3c8; color: var(--c-amber-ink); }
.tk-chest.done .ic { filter: none; background: #1f3a1c; box-shadow: 0 0 0 2px #3f7a3a; font-size: 18px; }
.tk-chest.done b { color: var(--good); border-color: #3f7a3a; }
@keyframes tk-bob { 50% { transform: translateY(-3px); } }

/* weekly strip: seven day dots and the weekly chest */
.tk-week { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.tk-week .lb b { display: block; font-size: 13px; } .tk-week .lb small { color: var(--muted); font-size: 12px; }
.tk-week .dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; justify-items: center; }
.tk-dot { display: grid; justify-items: center; gap: 2px; }
.tk-dot i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 12px/1 system-ui; font-style: normal; background: var(--c-ink); border: 2px solid #3a4a3e; color: #fff; }
.tk-dot b { font: 700 10px/1 system-ui; color: var(--muted); }
.tk-dot.done i { background: linear-gradient(#7fd88a, #3f9a4a); border-color: #c9f5cf; }
.tk-dot.miss i { opacity: .45; }
.tk-dot.today i { border-color: var(--pn-gold); box-shadow: 0 0 8px rgba(240,180,60,.6); }
.tk-dot.today b { color: var(--pn-gold); }
.tk-wchest { min-width: 62px; padding: 4px 6px; border-radius: 12px; border: 0; display: grid; justify-items: center; gap: 1px; color: #fff; background: linear-gradient(#3a4a3e, #222d26); box-shadow: 0 0 0 2px #56695a, 0 3px 0 #0d130f; }
.tk-wchest span { font-size: 22px; line-height: 1.1; filter: grayscale(.6); } .tk-wchest b { font: 800 11px/1.1 system-ui; }
.tk-wchest.ready { background: linear-gradient(var(--c-amber-hi), #e3a03a); color: var(--c-amber-ink); box-shadow: 0 0 0 2px #fff3c8, 0 3px 0 #8a5a10, 0 0 14px rgba(255,215,106,.7); animation: tk-bob 1.2s ease-in-out infinite; }
.tk-wchest.ready span, .tk-wchest.done span { filter: none; } .tk-wchest.done { opacity: .75; } .tk-wchest.done b { color: var(--good); }
.tk-hint { font-size: 12px; color: #d9c48c; padding: 0 2px; } .tk-hint span { color: var(--muted); }

/* task rows */
.tk-list { display: grid; gap: 8px; }
.tk-row, .tk-chain { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.tk-row .ic, .tk-chain .ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 10px; background: var(--c-ink); border: 1px solid var(--line); }
.tk-row .tx, .tk-chain .tx { min-width: 0; display: grid; gap: 4px; }
.tk-row .ds, .tk-chain .ds { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tk-row.ready, .tk-chain.ready { border-color: var(--pn-gold2); background: linear-gradient(135deg, #2e2a14, var(--panel) 70%); box-shadow: 0 0 10px rgba(240,180,60,.18); }
.tk-row.done, .tk-chain.fin { opacity: .55; }
.tk-tag { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #2b2a40; border: 1px solid #55527a; color: #c9c6ff; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.tk-prog { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.tk-prog .pn-bar { margin-top: 0; } .tk-prog small { font: 700 11px/1 system-ui; color: var(--muted); white-space: nowrap; }
.tk-rws { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-rw { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); font-size: 12px; white-space: nowrap; }
.tk-rw.pts { background: #3a2a0a; border-color: var(--pn-gold2); color: var(--c-amber-pale); }
.tk-btn { min-width: 64px; min-height: 40px; padding: 6px 10px; border-radius: 10px; font: 800 14px/1 system-ui; }
.tk-btn.go { background: linear-gradient(#3f7fc0, #24558a); border: 1px solid #8fbdf0; color: #fff; box-shadow: 0 2px 0 #12304f; }
.tk-btn.claim { background: linear-gradient(#ffd97a, #e3a12f 55%, #b8761a); border: 1px solid #ffe7a6; color: #2a1a03; box-shadow: 0 2px 0 var(--c-amber-deep); animation: tk-pulse 1.4s ease-in-out infinite; }
@keyframes tk-pulse { 50% { filter: brightness(1.15); transform: scale(1.04); } }
.tk-tick { width: 64px; text-align: center; font: 900 22px/1 system-ui; color: var(--good); }

/* growth tab */
.tk-gbanner { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--pn-gold2); background: linear-gradient(135deg, #24402a, #17201a 75%); }
.tk-gbanner .ic { width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; border-radius: 50%; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
.tk-gbanner .tx { display: grid; gap: 4px; } .tk-gbanner b { font-size: 17px; color: var(--c-amber-hi); } .tk-gbanner .tx > small { font-size: 12px; color: #cfd8c9; }
.tk-chain .nm { display: flex; align-items: center; gap: 8px; font: 800 11px/1 system-ui; text-transform: uppercase; letter-spacing: .05em; color: var(--pn-gold); }
.tk-steps { display: inline-flex; gap: 3px; } .tk-steps i { width: 9px; height: 5px; border-radius: 2px; background: #3a4a3e; }
.tk-steps i.on { background: var(--good); } .tk-steps i.cur { background: var(--pn-gold); }

/* sticky Quick Claim */
.tk-foot { position: sticky; bottom: 0; margin: 10px -12px 0; padding: 8px 12px calc(8px + var(--safe-bottom)); background: linear-gradient(transparent, rgba(15,23,17,.95) 30%); }
#panel .pn-wrap.tk-root:has(.tk-foot) { padding-bottom: 0; }
.tk-quick { position: relative; width: 100%; min-height: 50px; font-size: 17px; }
.tk-quick .hud-bdg { top: -6px; right: -4px; }

/* popups */
.tk-note { font-size: 13px; margin: 10px 0 0; }
.tk-rules { margin: 4px 0 4px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
#sheet .tk-rws { margin-top: 6px; gap: 6px; } #sheet .tk-rw { font-size: 14px; padding: 3px 10px; }
.tk-rws.named { display: grid; grid-template-columns: 1fr 1fr; } .tk-rws.named .tk-rw { gap: 5px; border-radius: 10px; min-width: 0; }
.tk-rws.named small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.tk-pop .ec-pop-card { display: grid; gap: 10px; }
