/* ═══════════════════════════════════════════════════════════════════════════
   CHECKLIST — чеклист
   Акцент: #10b981 (emerald)

   gh-1: бар прогресса + дробь. Список скрыт.
   gh-2+: бар + список со скроллом.
   gh-3/4: строки выше, чекбоксы крупнее.
   ═══════════════════════════════════════════════════════════════════════════ */

.t-cl-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 6px;
}
.t-cl-track {
  flex: 1;
  height: 5px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}
.t-cl-fill {
  height: 100%;
  background: #10b981;
  border-radius: 99px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.t-cl-frac {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  color: #10b981;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Список */
.t-cl-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.t-cl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 6px;
  transition: background .1s;
  flex-shrink: 0;
  min-height: 28px;
}
.t-cl-item:hover { background: var(--surface2); }
.t-cl-item input[type=checkbox] { display: none; }

.t-cl-box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .12s;
  color: transparent;
}
.t-cl-item.checked .t-cl-box { background: #10b981; border-color: #10b981; color: #fff; }

.t-cl-text {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.3;
  min-width: 0;
  flex: 1;
  transition: all .12s;
}
.t-cl-item.checked .t-cl-text { color: var(--muted); text-decoration: line-through; }

/* ── gh-1: только бар ── */
@container metric (max-height: 119px) {
  .t-metric-body { padding: 0 10px 8px; }
  .t-cl-bar-row  { flex: 1; align-items: center; margin-bottom: 0; }
  .t-cl-track    { height: 8px; }
  .t-cl-frac     { font-size: 16px; }
  .t-cl-list     { display: none; }
}

/* ── gh-2 ── */
@container metric (min-height: 120px) and (max-height: 239px) {
  .t-cl-item     { min-height: 24px; padding: 2px 2px; }
  .t-cl-text     { font-size: 11.5px; }
  .t-cl-box      { width: 14px; height: 14px; }
}

/* ── gh-3/4 ── */
@container metric (min-height: 360px) {
  .t-cl-item     { min-height: 34px; padding: 5px 4px; }
  .t-cl-box      { width: 18px; height: 18px; border-radius: 6px; }
  .t-cl-text     { font-size: 13px; }
  .t-cl-track    { height: 6px; }
}

/* ── gw-2/3: двухколоночный список ── */
@container metric (min-width: 300px) and (min-height: 240px) {
  .t-cl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; align-content: start; }
}
