/* ============================================================
   Привычки
   ============================================================ */

#habits-list { display: flex; flex-direction: column; gap: 10px; }

.habit-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--r-lg);
  padding: 12px 14px; box-shadow: var(--shadow);
}
.habit-emoji {
  width: 40px; height: 40px; min-width: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 19px;
}
.habit-body { flex: 1; min-width: 0; }
.habit-title { font-size: 15px; font-weight: 650; word-break: break-word; }
.habit-streak { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.habit-partner { font-size: 12px; color: var(--pink-deep); font-weight: 600; margin-top: 2px; }

.habit-check {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 50%; border: 2px solid var(--line);
  background: none; color: var(--muted-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.habit-check svg { width: 22px; height: 22px; }
.habit-item.checked .habit-check {
  background: var(--pink-grad); border-color: transparent; color: #fff;
}
.habit-check.check-pop { animation: check-pop 0.4s ease-out; }

.habit-hint { font-size: 12.5px; color: var(--muted); padding: 4px 2px; }

/* ---------- вход в привычки из «Дел» ---------- */

.habits-entry {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  border: none; text-align: left;
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.14s ease;
}
.habits-entry:active { transform: scale(0.99); }
.habits-entry-icons { display: flex; flex-shrink: 0; }
/* значки привычек лежат стопкой внахлёст — плашка остаётся узкой */
.habits-entry-emoji {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 16px;
  border: 2px solid var(--panel);
  margin-left: -11px;
}
.habits-entry-emoji:first-child { margin-left: 0; }
.habits-entry-body { flex: 1; min-width: 0; }
.habits-entry-title { display: block; font-size: 15px; font-weight: 700; }
.habits-entry-sub {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.habits-entry.full .habits-entry-sub { color: var(--pink-deep); }
.habits-entry-track {
  display: block; height: 4px; margin-top: 7px;
  border-radius: 999px; background: var(--line); overflow: hidden;
}
.habits-entry-track i {
  display: block; height: 100%;
  border-radius: 999px; background: var(--pink-grad);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.habits-entry-go {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--pink-soft); color: var(--pink-deep);
  display: flex; align-items: center; justify-content: center;
}
.habits-entry-go svg { width: 16px; height: 16px; }
