/* ==========================================================================
   List — a list inside a task
   ========================================================================== */
.list-box { margin-bottom: 18px; }
.list-count { font-size: 12px; color: var(--text-faint); margin: 0 0 6px 2px; }

.list-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border-radius: 9px; cursor: pointer; user-select: none;
}
.list-item:hover { background: var(--bg-hover); }
.list-tick {
  flex: none; width: 19px; height: 19px; border-radius: 50%; padding: 0;
  border: 1.5px solid var(--border-strong); background: var(--bg); color: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.list-item.done .list-tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.list-text { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; word-break: break-word; }
.list-item.done .list-text { color: var(--text-faint); text-decoration: line-through; }
.list-x, .list-edit {
  flex: none; border: 0; background: none; color: var(--text-faint); cursor: pointer;
  font-size: 12px; padding: 3px 5px; border-radius: 6px; opacity: 0; transition: opacity .12s;
  display: grid; place-items: center;
}
.list-item:hover .list-x, .list-item:hover .list-edit,
.list-x:focus, .list-edit:focus { opacity: 1; }
.list-edit:hover { background: var(--bg-hover); color: var(--accent); }
.list-x:hover { background: var(--bg-hover); color: #d64545; }

/* changing the words of a point, without the row changing shape */
.list-input {
  flex: 1; min-width: 0; border: 1px solid var(--accent); border-radius: 7px;
  padding: 4px 8px; margin: -5px 0; font: inherit; font-size: 14.5px; outline: none;
  background: var(--bg); color: var(--text);
}

.list-add { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.list-add input {
  flex: 1; border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 12px;
  font: inherit; font-size: 14px; outline: none; background: var(--bg); color: var(--text);
}
.list-add input:focus { border-color: var(--accent); }
.list-plus {
  flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0;
  background: var(--accent); color: #fff; font-size: 19px; line-height: 1; cursor: pointer;
}
.list-plus:hover { filter: brightness(1.06); }

/* what you have put on a list before */
.list-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.list-suggest button {
  border: 1px solid var(--border); background: var(--bg); border-radius: 999px;
  padding: 5px 11px; font: inherit; font-size: 13px; color: var(--text-soft); cursor: pointer;
}
.list-suggest button:hover { border-color: var(--accent); color: var(--text); }

.list-hint {
  font-size: 13px; color: var(--text-faint); line-height: 1.5;
  background: var(--bg-hover); border-radius: 10px; padding: 10px 12px;
}
.list-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
