ul.ff-checklist {
  list-style: none !important;
  margin: 1em 0;
  padding-left: 0;
}

ul.ff-checklist li {
  position: relative;
  padding-left: 2.2em;
  margin: 0.55em 0;
  list-style: none !important;
  min-height: 1.5em;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

ul.ff-checklist li::marker {
  content: '';
}

ul.ff-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid #9ca3af;
  border-radius: 0.28em;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  transition: all 0.18s ease;
}

ul.ff-checklist li::after {
  content: '';
  position: absolute;
  left: 0.34em;
  top: 0.42em;
  width: 0.3em;
  height: 0.56em;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) scale(0.9);
  box-sizing: border-box;
  transition: all 0.18s ease;
}

ul.ff-checklist li:hover::before {
  border-color: #6b7280;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

ul.ff-checklist li:focus,
ul.ff-checklist li:focus-visible {
  outline: none;
}

ul.ff-checklist li:focus::before,
ul.ff-checklist li:focus-visible::before {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

ul.ff-checklist li.ff-checklist-checked::before {
  border-color: #16a34a;
  background: #16a34a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
}

ul.ff-checklist li.ff-checklist-checked::after {
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

ul.ff-checklist li.ff-checklist-checked {
  color: #3f3f46;
}

ul.ff-checklist li.ff-checklist-saving {
  opacity: 0.58;
  pointer-events: none;
}
