/* Train's Challenges card (views/train-challenges.js) and its sheets (views/challenge-log.js, views/challenge-run.js):
   the napkins on top, one bordered card per challenge, its levels as quiet rows (a locked one dimmed with its lock and
   why, an open one with its best and trend), the actions at its foot; the Start sheet's levels as radio rows. */
.chl-top{margin:2px 0 6px}
.chl-list{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.chl{border:1px solid var(--line);border-radius:var(--rm);background:var(--surface);padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.chl-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.chl-head h3{margin:0;font-family:var(--serif);font-size:1.2rem;color:var(--ink);text-transform:none;letter-spacing:0}
.chl .trn-quiet{margin:0}
.chl-levels{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column}
.chl-lv{display:flex;flex-direction:column;gap:1px;padding:8px 0;border-top:1px solid var(--line)}
.chl-lv-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chl-lv b,.chl-pick b{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.chl-lv small,.chl-pick small{color:var(--mut);font-size:.8rem;overflow-wrap:anywhere}
.chl-lv[data-open="0"] b,.chl-lv[data-open="0"] small[dir]{color:var(--mut)}
.chl-lv .chl-best{color:var(--ink2);font-weight:600}
.chl-why{color:var(--ink2)!important;font-weight:600}
.chl-lock{inline-size:14px;block-size:14px;flex:none}
.chl-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
details.fc .inside .chl-acts .btn{align-self:stretch;margin:0}
.chl-picks{display:flex;flex-direction:column;gap:8px}
.chl-pick{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px;border:1px solid var(--line);border-radius:var(--rm);cursor:pointer}
.chl-pick span{display:flex;flex-direction:column;gap:2px}
.chl-pick input{margin-top:3px}
.chl-pick:has(input:checked){border-color:var(--a);background:var(--a-soft)}
.chl-pick.locked{cursor:default;opacity:.85}
.chl-form:not(:has([name=capped]:checked)) .chl-capreps{display:none}
.chl-live{display:flex;flex-direction:column;gap:4px;text-align:center}
.chl-live p{margin:0}
.chl-cap{font-weight:700;color:var(--ink2)}.chl-cap[data-hit="1"]{color:var(--red)}
